diff --git a/include/sessions.php b/include/sessions.php index 1b1d00cc..d38b7996 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -106,7 +106,7 @@ if (isset($_COOKIE[$session_name])) { @session_start(); - if (!$_SESSION["uid"]) { + if (!isset($_SESSION["uid"] || !$_SESSION["uid"]) { session_destroy(); setcookie(session_name(), '', time()-42000, '/'); }