summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-03-02 12:12:04 +0100
committerAndrew Dolgov <[email protected]>2007-03-02 12:12:04 +0100
commitf7c390b8787fbf5cf0fbc3cb8c1396454edb7b28 (patch)
tree5d0657b913e65c6ac78ad860f28a5bdd3c844878
parent1df0f48b2147c3cbc71dc2085de76f5a4432fb6d (diff)
login system fixes
-rw-r--r--config.php-dist9
-rw-r--r--sanity_check.php4
2 files changed, 5 insertions, 8 deletions
diff --git a/config.php-dist b/config.php-dist
index bbf45869a..6ccd0d8c7 100644
--- a/config.php-dist
+++ b/config.php-dist
@@ -108,15 +108,12 @@
// Bind session to client IP address (recommended)
define('SESSION_COOKIE_LIFETIME', 0);
- // Default lifetime of a session cookie. In seconds,
- // 0 means delete on browser close
-
- define('SESSION_COOKIE_LIFETIME_REMEMBER', 86400);
- // Session cookie lifetime if "remember me" is checked on login.
+ // Default lifetime of a session (e.g. login) cookie. In seconds,
+ // 0 means cookie will be deleted when browser closes.
define('SESSION_EXPIRE_TIME', 86400);
// Hard expiration limit for sessions. Should be
- // >= SESSION_COOKIE_LIFETIME_REMEMBER
+ // greater or equal to SESSION_COOKIE_LIFETIME
define('DAEMON_UPDATE_LOGIN_LIMIT', 0);
// Stop updating feeds of user who was never logged in
diff --git a/sanity_check.php b/sanity_check.php
index 636fcd82e..b77c9797e 100644
--- a/sanity_check.php
+++ b/sanity_check.php
@@ -46,9 +46,9 @@
$err_msg = _("config: SESSION_EXPIRE_TIME is too low (less than 60)");
}
- if (SESSION_EXPIRE_TIME < SESSION_COOKIE_LIFETIME_REMEMBER) {
+ if (SESSION_EXPIRE_TIME < SESSION_COOKIE_LIFETIME) {
$err_msg = _("config: SESSION_EXPIRE_TIME should be greater or equal to" .
- "SESSION_COOKIE_LIFETIME_REMEMBER");
+ "SESSION_COOKIE_LIFETIME");
}
/* if (defined('DISABLE_SESSIONS')) {