From 0ae667e6cfdd1bcc85bacf85cd93a84f99fa88f8 Mon Sep 17 00:00:00 2001 From: cfoe <cfoe@ispconfig3> Date: Tue, 22 May 2012 04:08:05 -0400 Subject: [PATCH] added missing language string already present in default theme --- interface/web/login/logout.php | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/interface/web/login/logout.php b/interface/web/login/logout.php index aa07714..53dc933 100644 --- a/interface/web/login/logout.php +++ b/interface/web/login/logout.php @@ -59,6 +59,8 @@ exit; } +$app->plugin->raiseEvent('logout',true); + $_SESSION["s"]["user"] = null; $_SESSION["s"]["module"] = null; $_SESSION['s_old'] = null; @@ -71,8 +73,11 @@ if($conf["interface_logout_url"] != '') { echo('URL_REDIRECT:'.$conf["interface_logout_url"]); } else { - echo('URL_REDIRECT:../index.php'); + echo('URL_REDIRECT:index.php'); } } -exit; -?> \ No newline at end of file +// Destroy the session completely now +$_SESSION = array(); +session_destroy(); +session_write_close(); +?> -- Gitblit v1.9.1