From 25c72d9edd2b21fe538a3bfcb66bf05d55be12b3 Mon Sep 17 00:00:00 2001 From: nveid <nveid@ispconfig3> Date: Sun, 28 Aug 2011 22:53:34 +0000 Subject: [PATCH] SESSION data on logout is really destroyed. Thus new configuration options, such as ones affecting theme can take place now. Affected files: interface/web/login/logout.php --- interface/web/login/logout.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/interface/web/login/logout.php b/interface/web/login/logout.php index 57b76a3671..53dc933022 100644 --- a/interface/web/login/logout.php +++ b/interface/web/login/logout.php @@ -64,7 +64,6 @@ $app->plugin->raiseEvent('logout',true); $_SESSION["s"]["user"] = null; $_SESSION["s"]["module"] = null; $_SESSION['s_old'] = null; -session_write_close(); //header("Location: ../index.php?phpsessid=".$_SESSION["s"]["id"]); @@ -77,5 +76,8 @@ if($_SESSION["s"]["site"]["logout"] != '') { echo('URL_REDIRECT:index.php'); } } -exit; -?> \ No newline at end of file +// Destroy the session completely now +$_SESSION = array(); +session_destroy(); +session_write_close(); +?> -- GitLab