Make Logout in user.php actually log the user out and remove cookie.
This commit is contained in:
parent
aa8fa270f8
commit
9dd37b5a45
|
@ -11,6 +11,8 @@ if (isset($_POST['command']) && $_POST['command'] == 'Logout') {
|
|||
}
|
||||
$_SESSION = array();
|
||||
session_destroy();
|
||||
unset($_COOKIE['mail_name']);
|
||||
setcookie('mail_name', '', -1, '/');
|
||||
$logmeout = true;
|
||||
} else {
|
||||
$logmeout = false;
|
||||
|
|
Loading…
Reference in New Issue