set session.cookie_lifetime to 0 initially instead of a rather useless min()

This commit is contained in:
Andrew Dolgov 2020-09-30 14:43:53 +03:00
parent 476be67ff9
commit da5deaaca1
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
ini_set("session.name", $session_name);
ini_set("session.use_only_cookies", true);
ini_set("session.gc_maxlifetime", $session_expire);
ini_set("session.cookie_lifetime", min(0, SESSION_COOKIE_LIFETIME));
ini_set("session.cookie_lifetime", 0);
function session_get_schema_version() {
global $schema_version;