mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
#8543 Resolve Duplicate Headers
Put cookie_lifetime back into the session parameters.
This commit is contained in:
parent
2deb8f4176
commit
4eb6669c08
@ -331,14 +331,11 @@ class Session
|
||||
$sessionParameters = [
|
||||
"cookie_path" => $path,
|
||||
"cookie_domain" => $domain ?: "",
|
||||
"cookie_lifetime" => $timeout ?: 0,
|
||||
"cookie_secure" => $secure,
|
||||
"cookie_httponly" => true
|
||||
];
|
||||
|
||||
if ($timeout) {
|
||||
$sessionParameters["cookie_lifetime"] = $timeout;
|
||||
}
|
||||
|
||||
session_start($sessionParameters);
|
||||
|
||||
if (isset($_SESSION)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user