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 = array();
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
unset($_COOKIE['mail_name']);
|
||||||
|
setcookie('mail_name', '', -1, '/');
|
||||||
$logmeout = true;
|
$logmeout = true;
|
||||||
} else {
|
} else {
|
||||||
$logmeout = false;
|
$logmeout = false;
|
||||||
|
|
Loading…
Reference in New Issue