]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - login/index.php
automatically go to login page on session timeout
[irc/unrealircd/unrealircd-webpanel.git] / login / index.php
index 178b1eefca1cb1d06ce462311cd9beb53d1f4957..b27f65b749a81ff824de2518a4e3cfa36a06aa66 100644 (file)
@@ -23,6 +23,12 @@ if (!empty($_GET['logout']))
                $logout = true;
        }
 }
+if (!empty($_GET['timeout']))
+{
+       $failmsg = "Your session has timed out. Please login again to continue";
+       $_SESSION = NULL;
+       session_destroy();
+}
 if (!empty($_POST))
 {
        if ($_POST['username'] && $_POST['password'])