This commit is contained in:
2025-03-31 16:49:39 -06:00
parent ffe30b8226
commit 2accb3114b
4 changed files with 8 additions and 10 deletions
+5 -6
View File
@@ -12,13 +12,12 @@ echo '
function getLogoutButton()
{
if ($_SESSION['new-access'] === true)
return '<button name="logout" value="true" class="reset">Logout</button>';
if ($_SESSION['new-access'] == true)
return '<button name="logout" value="true" class="reset">Logout</button>';
}
if (isset($_GET['logout'])) {
$_SESSION['new-access'] = false;
session_destroy();
header('Location: .');
$_SESSION['new-access'] = false;
session_destroy();
header('Location: .');
}
?>