Revert "better handle cookie_samesite if null"

This reverts commit fd0c9823fa.
This commit is contained in:
Andy Miller 2020-12-04 03:33:59 -07:00
parent c5efd17a9c
commit 5cdeb28e6b
No known key found for this signature in database
GPG Key ID: 2B07A47E470BCFDE

View File

@ -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);