summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2009-04-25 10:02:55 +0000
committerdeva <deva>2009-04-25 10:02:55 +0000
commit652dd6d3b9772e5947f308ef846f6aa0141fa5ca (patch)
treedefb65d096038f2158dab0f08f5e13092dcae3bd
parentb78f15df00816780eeb5652d0f0af9b3b2ebc68e (diff)
Fixed login timeout problem.
-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 {