about summary refs log tree commit diff stats
path: root/classes/config.php
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2021-06-25 12:23:01 +0300
committerAndrew Dolgov <noreply@fakecake.org>2021-06-25 12:23:01 +0300
commit7ef52ac5e398efbbb865083bcd0cdcd404a3889d (patch)
tree5344ddb9d2c15320fcb42bbaf29e1c6c592c5143 /classes/config.php
parent2887f9109521c9790579f0c5938c25bf95bcb132 (diff)
downloadthe-epube-7ef52ac5e398efbbb865083bcd0cdcd404a3889d.tar.gz
the-epube-7ef52ac5e398efbbb865083bcd0cdcd404a3889d.tar.xz
prolong PHP session cookie automatically to stop hard logouts after SESSION_LIFETIME expires
Diffstat (limited to 'classes/config.php')
-rw-r--r--classes/config.php2
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;