From: hickert Date: Thu, 14 Sep 2006 06:44:36 +0000 (+0000) Subject: fixed lhs role : error while saving, skip saving if roles.conf could not be read X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95fbf9ceed6551f2da271abb5362440da79e7994;p=gosa.git fixed lhs role : error while saving, skip saving if roles.conf could not be read fixed undefined index in ogroupManagement git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4651 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/index.php b/html/index.php index 18c9bed5b..d1bf44570 100644 --- a/html/index.php +++ b/html/index.php @@ -80,11 +80,15 @@ function displayLogin() exit(); } +session_start(); +/* Destroy old session if exists. + Else you will get your old session back, if you not logged out correctly. */ +if(is_array($_SESSION) && count($_SESSION)){ + session_destroy(); + session_start(); +} -/* Set error handler to own one, initialize time calculation - and start session. */ -session_start (); $username= ""; /* Reset errors */