]> git.wh0rd.org - tt-rss.git/commitdiff
login system fixes
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 2 Mar 2007 11:12:04 +0000 (12:12 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 2 Mar 2007 11:12:04 +0000 (12:12 +0100)
config.php-dist
sanity_check.php

index bbf45869a175c6f36a8fc946f25178bbc0656e71..6ccd0d8c76f1b34c60d1e97b415ebd1b8219ed2a 100644 (file)
        // 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
index 636fcd82e4d1df17cd7c0391ed13e04280d579a0..b77c9797ea80d731d4ac35d0e542e4a1bb7b1dbd 100644 (file)
@@ -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')) {