diff options
Diffstat (limited to 'utils/login.php')
-rw-r--r-- | utils/login.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/login.php b/utils/login.php index 950476e..88ba53a 100644 --- a/utils/login.php +++ b/utils/login.php @@ -13,6 +13,7 @@ function checklogin() global $loggedin; global $action; global $DATA_DIR; + global $ADMIN_TIMEOUT; $users = new Users($DATA_DIR . "/users.xml"); @@ -25,8 +26,8 @@ function checklogin() } else { _log("Wrong password", $userid); } - setcookie("UserID", $userid, time()+600); // expire in 10 minutes - setcookie("Password", $password, time()+600); // expire in 10 minutes + setcookie("UserID", $userid, time()+$ADMIN_TIMEOUT); + setcookie("Password", $password, time()+$ADMIN_TIMEOUT); return; } else { _log("Failed", $userid); |