diff options
author | Andrew Dolgov <[email protected]> | 2021-06-25 12:23:01 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-06-25 12:23:01 +0300 |
commit | 7ef52ac5e398efbbb865083bcd0cdcd404a3889d (patch) | |
tree | 5344ddb9d2c15320fcb42bbaf29e1c6c592c5143 /classes/config.php | |
parent | 2887f9109521c9790579f0c5938c25bf95bcb132 (diff) |
prolong PHP session cookie automatically to stop hard logouts after SESSION_LIFETIME expires
Diffstat (limited to 'classes/config.php')
-rw-r--r-- | classes/config.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/config.php b/classes/config.php index 95b0ccc..e62ea34 100644 --- a/classes/config.php +++ b/classes/config.php @@ -14,6 +14,7 @@ class Config { const BOOKS_DIR = "BOOKS_DIR"; const DICT_SERVER = "DICT_SERVER"; const SESSION_LIFETIME = "SESSION_LIFETIME"; + const SESSION_NAME = "SESSION_NAME"; private const _DEFAULTS = [ Config::DB_TYPE => [ "sqlite", Config::T_STRING ], @@ -22,6 +23,7 @@ class Config { Config::BOOKS_DIR => [ "", Config::T_STRING ], Config::DICT_SERVER => [ "", Config::T_STRING ], Config::SESSION_LIFETIME => [ 86400*30, Config::T_INT ], + Config::SESSION_NAME => [ "epube_sid", Config::T_STRING ], ]; private static $instance; |