mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 05:15:58 +02:00
Allow to set system.session.timeout to 0 to clear session on browser close (#1538)
* Allow to set expire to 0 to clear session on browser close * Changelog
This commit is contained in:
@@ -84,7 +84,7 @@ class Session extends BaseSession
|
||||
}
|
||||
$this->setName($session_name);
|
||||
$this->start();
|
||||
setcookie(session_name(), session_id(), time() + $session_timeout, $session_path, $domain, $secure, $httponly);
|
||||
setcookie(session_name(), session_id(), $session_timeout ? time() + $session_timeout : 0, $session_path, $domain, $secure, $httponly);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user