summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/login.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/login.php b/utils/login.php
index 88ba53a..a4686e3 100644
--- a/utils/login.php
+++ b/utils/login.php
@@ -53,8 +53,8 @@ function checklogin()
$user = $users->findUser($HTTP_COOKIE_VARS["UserID"]);
if($user) {
if($user->checkPassword($HTTP_COOKIE_VARS["Password"])) {
- setcookie("UserID", $HTTP_COOKIE_VARS["UserID"], time()+600); // expire in 10 minutes
- setcookie("Password", $HTTP_COOKIE_VARS["Password"], time()+600); // expire in 10 minutes
+ setcookie("UserID", $HTTP_COOKIE_VARS["UserID"], time()+$ADMIN_TIMEOUT); // expire in 10 minutes
+ setcookie("Password", $HTTP_COOKIE_VARS["Password"], time()+$ADMIN_TIMEOUT); // expire in 10 minutes
$loggedin = true;
return;
} else {