mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 22:55:56 +00:00
login system fixes
This commit is contained in:
@@ -108,15 +108,12 @@
|
|||||||
// Bind session to client IP address (recommended)
|
// Bind session to client IP address (recommended)
|
||||||
|
|
||||||
define('SESSION_COOKIE_LIFETIME', 0);
|
define('SESSION_COOKIE_LIFETIME', 0);
|
||||||
// Default lifetime of a session cookie. In seconds,
|
// Default lifetime of a session (e.g. login) cookie. In seconds,
|
||||||
// 0 means delete on browser close
|
// 0 means cookie will be deleted when browser closes.
|
||||||
|
|
||||||
define('SESSION_COOKIE_LIFETIME_REMEMBER', 86400);
|
|
||||||
// Session cookie lifetime if "remember me" is checked on login.
|
|
||||||
|
|
||||||
define('SESSION_EXPIRE_TIME', 86400);
|
define('SESSION_EXPIRE_TIME', 86400);
|
||||||
// Hard expiration limit for sessions. Should be
|
// Hard expiration limit for sessions. Should be
|
||||||
// >= SESSION_COOKIE_LIFETIME_REMEMBER
|
// greater or equal to SESSION_COOKIE_LIFETIME
|
||||||
|
|
||||||
define('DAEMON_UPDATE_LOGIN_LIMIT', 0);
|
define('DAEMON_UPDATE_LOGIN_LIMIT', 0);
|
||||||
// Stop updating feeds of user who was never logged in
|
// Stop updating feeds of user who was never logged in
|
||||||
|
|||||||
@@ -46,9 +46,9 @@
|
|||||||
$err_msg = _("config: SESSION_EXPIRE_TIME is too low (less than 60)");
|
$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" .
|
$err_msg = _("config: SESSION_EXPIRE_TIME should be greater or equal to" .
|
||||||
"SESSION_COOKIE_LIFETIME_REMEMBER");
|
"SESSION_COOKIE_LIFETIME");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if (defined('DISABLE_SESSIONS')) {
|
/* if (defined('DISABLE_SESSIONS')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user