happy cat image

everdevel

coding

login
NotificationX
  • Currently, only notices of comments are displayed.
  • no comment or please login

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.


Thank you for visiting. If you have any inquiry or explanation of mistakes, please use the comments below.


    
    

Back to the course

ALL COMMENTS 0

Sort by