diff --git a/CHANGELOG.md b/CHANGELOG.md index b2efc9a..87da560 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Upcoming... +* Cookie samesite defaults to Lax, fixes #232 + ## 7.5.2 - 2021-06-24 * Composer update diff --git a/configuration_sample.php b/configuration_sample.php index 2f920e7..9f3bf86 100644 --- a/configuration_sample.php +++ b/configuration_sample.php @@ -44,7 +44,9 @@ return [ //$save_path = __DIR__.'/private/sessions'; $handler = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler($save_path); - return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([], $handler); + return new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage([ + "cookie_samesite" => "Lax", + ], $handler); }, ], ],