diff options
author | Andrew Dolgov <[email protected]> | 2007-03-01 13:29:25 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-01 13:29:25 +0100 |
commit | 8e849206dd5f049c3b2867bb9f7d9c25aa0ba807 (patch) | |
tree | 4651f97c38e182d641e9cf9f460b7dece47bedaf /functions.php | |
parent | d620cfe70afc35bae4f8c2d92798448812701554 (diff) |
login system fixes (2)
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php index 59086506a..70cc16cc9 100644 --- a/functions.php +++ b/functions.php @@ -1170,7 +1170,7 @@ if ($_SESSION["cookie_lifetime"] && $_SESSION["uid"]) { -# print time() . " vs " . $_SESSION["cookie_lifetime"]; + //print_r($_SESSION); if (time() > $_SESSION["cookie_lifetime"]) { return false; @@ -1210,7 +1210,7 @@ if ($remember_me) { $_SESSION["cookie_lifetime"] = time() + SESSION_COOKIE_LIFETIME_REMEMBER; - } else { + } else if (SESSION_COOKIE_LIFETIME > 0) { $_SESSION["cookie_lifetime"] = time() + SESSION_COOKIE_LIFETIME; } |