From 62bcb461ca5ab6f7b44daf7ef522bb50b2816213 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 12 Dec 2005 21:17:23 +0000 Subject: [PATCH] Tried to fix strange "session-missing" logout problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2300 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/logout.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/html/logout.php b/html/logout.php index 684f27c3e..ba44304bf 100644 --- a/html/logout.php +++ b/html/logout.php @@ -18,14 +18,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - /* Basic setup, remove eventually registered sessions */ require_once ("../include/php_setup.inc"); require_once ("functions.inc"); +header("Content-type: text/html; charset=UTF-8"); +get_dir_list("$BASE_DIR/plugins"); session_start (); /* Do logout-logging and destroy session */ -if (!isset($_SESSION["ui"])){ +if (!isset($_SESSION["config"])){ /* Language setup */ if ($config->data['MAIN']['LANG'] == ""){ $lang= get_browser_language(); @@ -53,6 +54,7 @@ if (!isset($_SESSION["ui"])){ } $smarty->display (get_template_path('headers.tpl')); $smarty->display (get_template_path('logout.tpl')); + @session_destroy (); exit; } $ui= $_SESSION["ui"]; -- 2.30.2