Code

Fixed relog problem
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Jan 2006 06:39:45 +0000 (06:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Jan 2006 06:39:45 +0000 (06:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2582 594d385d-05f5-0310-b6e9-bd551577e9d8

html/index.php

index f11f8514a536c26e8478b966f4d97118a194fe0f..0aa550a178b232761dd4ddaf3870b1101fcea5fb 100644 (file)
@@ -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);