diff --git a/admin.php b/admin.php index 4567310..670eb6e 100644 --- a/admin.php +++ b/admin.php @@ -111,7 +111,8 @@ render_head( diff --git a/logout.php b/logout.php index e230326..711c51a 100644 --- a/logout.php +++ b/logout.php @@ -4,5 +4,13 @@ require_once __DIR__ . '/includes/auth.php'; session_unset(); session_destroy(); -header('Location: login.php'); -exit; +if (ini_get("session.use_cookies")) { + $params = session_get_cookie_params(); + setcookie(session_name(), '', time() - 42000, + $params["path"], $params["domain"], + $params["secure"], $params["httponly"] + ); +} + +header('Location: index.php'); +exit; \ No newline at end of file