mirror of
https://github.com/getgrav/grav.git
synced 2026-02-28 17:41:39 +01:00
Revert "better handle cookie_samesite if null"
This reverts commit fd0c9823fa.
This commit is contained in:
@@ -89,13 +89,8 @@ class SessionServiceProvider implements ServiceProviderInterface
|
||||
'cookie_domain' => $cookie_domain,
|
||||
'cookie_secure' => $cookie_secure,
|
||||
'cookie_httponly' => $cookie_httponly,
|
||||
];
|
||||
|
||||
if ($cookie_samesite) {
|
||||
$options['cookie_samesite'] = $cookie_samesite;
|
||||
}
|
||||
|
||||
$options += (array) $config->get('system.session.options');
|
||||
'cookie_samesite' => $cookie_samesite
|
||||
] + (array) $config->get('system.session.options');
|
||||
|
||||
$session = new Session($options);
|
||||
$session->setAutoStart($enabled);
|
||||
|
||||
Reference in New Issue
Block a user