Create a logout feature.

Let's create a logout feature.
This is also very simple. Once you have the ability to log sessions to the logout page, you're done.
The sauce looks like this:

/htdocs/myProject/member/signOut.php

<?php
    include "../include/session.php";
    echo 'Thank you for using This Service '.$_SESSION['ses_userid'];

    unset($_SESSION['ses_userid']);

    echo "<script>location.href='/myProject/';</script>";
?>

atom

php image

Logout can be done by unset the session that occurred at login.
unset(the session) The session will fly away.
I made the logout function like this. Thank you ^^ I don't know when I'll be using php.