From: hickert Date: Thu, 13 Jul 2006 04:08:45 +0000 (+0000) Subject: Destroy old session on login X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8b1df8b92b5d5529b7023497024b10d67bab276e;p=gosa.git Destroy old session on login git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4132 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/index.php b/html/index.php index 16e0c94be..3cd6509f0 100644 --- a/html/index.php +++ b/html/index.php @@ -85,6 +85,14 @@ function displayLogin() /* Set error handler to own one, initialize time calculation and start session. */ 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(); +} + $username= ""; /* Reset errors */