new option: SESSION_EXPIRE_TIME
This commit is contained in:
parent
a5ebd1f974
commit
898a9cdb1c
|
@ -114,5 +114,9 @@
|
||||||
define('SESSION_COOKIE_LIFETIME_REMEMBER', 86400);
|
define('SESSION_COOKIE_LIFETIME_REMEMBER', 86400);
|
||||||
// Session cookie lifetime if "remember me" is checked on login.
|
// Session cookie lifetime if "remember me" is checked on login.
|
||||||
|
|
||||||
|
define('SESSION_EXPIRE_TIME', 86400);
|
||||||
|
// Hard expiration limit for sessions. Should be
|
||||||
|
// >= SESSION_COOKIE_LIFETIME_REMEMBER
|
||||||
|
|
||||||
// vim:ft=php
|
// vim:ft=php
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
require_once "config.php";
|
require_once "config.php";
|
||||||
require_once "db.php";
|
require_once "db.php";
|
||||||
|
|
||||||
$session_expire = 3600; //seconds
|
$session_expire = SESSION_EXPIRE_TIME; //seconds
|
||||||
|
|
||||||
ini_set("session.gc_probability", 50);
|
ini_set("session.gc_probability", 50);
|
||||||
ini_set("session.name", "ttrss_sid");
|
ini_set("session.name", "ttrss_sid");
|
||||||
|
|
Loading…
Reference in New Issue