From da5deaaca18f7affe982368572179ba78815eb4e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Sep 2020 14:43:53 +0300 Subject: [PATCH] set session.cookie_lifetime to 0 initially instead of a rather useless min() --- include/sessions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sessions.php b/include/sessions.php index e4b9751e7..75d4671e8 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -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;