Code

fixed lhs role : error while saving, skip saving if roles.conf could not be read
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Sep 2006 06:44:36 +0000 (06:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Sep 2006 06:44:36 +0000 (06:44 +0000)
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

index 18c9bed5bbc1f9d60c74875c5626caf69f31ffd4..d1bf4457018b576c603a6cea50527785ba0c3030 100644 (file)
@@ -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 */