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:
- <?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
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.
Thank you for visiting. If you have any inquiry or explanation of mistakes, please use the comments below.
ALL COMMENTS 0
Sort by