From: hickert Date: Thu, 26 Jan 2006 06:39:45 +0000 (+0000) Subject: Fixed relog problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=60504d03e9c03ac39809bc2854cb84494b883376;p=gosa.git Fixed relog problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2582 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/index.php b/html/index.php index f11f8514a..0aa550a17 100644 --- a/html/index.php +++ b/html/index.php @@ -127,6 +127,11 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){ /* Reset error messages */ $message= ""; + /* Destroy old sessions, they cause a successfull login to relog again ...*/ + if(isset($_SESSION['_LAST_PAGE_REQUEST'])){ + $_SESSION['_LAST_PAGE_REQUEST'] = time(); + } + $server= validate($_POST["server"]); $config->set_current($server);