Code

Send us to logout.php after the session has timed out
[gosa.git] / html / main.php
index 4a96f4657e356b912a27f80cfdd2c1e9c86fd450..f4ad508e8049e153cfb2ab410cd5ce4894547c2c 100644 (file)
@@ -42,8 +42,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST"){
 
 /* Logged in? Simple security check */
 if (!isset($_SESSION['config'])){
-  gosa_log ("main.php called without session");
-  header ("Location: index.php");
+  gosa_log ("main.php called without session - logging out");
+  header ("Location: logout.php");
   exit;
 }