From: cajus Date: Mon, 12 Dec 2005 21:17:23 +0000 (+0000) Subject: Tried to fix strange "session-missing" logout problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=62bcb461ca5ab6f7b44daf7ef522bb50b2816213;p=gosa.git Tried to fix strange "session-missing" logout problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2300 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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"];