new option: SESSION_EXPIRE_TIME

This commit is contained in:
Andrew Dolgov 2006-03-17 05:21:03 +01:00
parent a5ebd1f974
commit 898a9cdb1c
2 changed files with 6 additions and 2 deletions

View File

@ -114,5 +114,9 @@
define('SESSION_COOKIE_LIFETIME_REMEMBER', 86400);
// 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
?>

View File

@ -4,7 +4,7 @@
require_once "config.php";
require_once "db.php";
$session_expire = 3600; //seconds
$session_expire = SESSION_EXPIRE_TIME; //seconds
ini_set("session.gc_probability", 50);
ini_set("session.name", "ttrss_sid");