inc/auth.inc.php
changeset 136 c795dd75a77e
parent 126 cb06e3e29ed8
child 192 3d18290ac993
--- a/inc/auth.inc.php	Thu Apr 10 19:42:47 2008 +0000
+++ b/inc/auth.inc.php	Fri Apr 11 10:19:14 2008 +0000
@@ -23,7 +23,7 @@
 
 function doAuthenticate() {
 	global $db;
-	global $EXPIRE;
+	global $iface_expire;
 	if (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] == "logout") {
 		logout();
 	}
@@ -36,7 +36,7 @@
 	}
 
 	// Check if the session hasnt expired yet.
-	if ((isset($_SESSION["userid"])) && ($_SESSION["lastmod"] != "") && ((time() - $_SESSION["lastmod"]) > $EXPIRE))
+	if ((isset($_SESSION["userid"])) && ($_SESSION["lastmod"] != "") && ((time() - $_SESSION["lastmod"]) > $iface_expire))
 	{
 		logout( _('Session expired, please login again.'),"error");
 	}