mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Revert "better handle cookie_samesite if null"
This reverts commit fd0c9823fa.
This commit is contained in:
parent
c5efd17a9c
commit
5cdeb28e6b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user