From 8b1df8b92b5d5529b7023497024b10d67bab276e Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 13 Jul 2006 04:08:45 +0000 Subject: [PATCH] Destroy old session on login git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4132 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/index.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.30.2