From 95fbf9ceed6551f2da271abb5362440da79e7994 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 14 Sep 2006 06:44:36 +0000 Subject: [PATCH] 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 --- html/index.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 */ -- 2.30.2