Commit 25c72d9e authored by nveid's avatar nveid
Browse files

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
parent 4600d73b
......@@ -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();
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment