Make Logout in user.php actually log the user out and remove cookie.

This commit is contained in:
Retro_Guy 2024-03-05 05:52:34 -07:00
parent aa8fa270f8
commit 9dd37b5a45
1 changed files with 2 additions and 0 deletions

View File

@ -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;