8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Cookie::SAMESITE_LAX
1 parent 1b84e50 commit f887a21Copy full SHA for f887a21
session.rst
@@ -57,6 +57,7 @@ sessions, check their default configuration:
57
.. code-block:: php
58
59
// config/packages/framework.php
60
+ use Symfony\Component\HttpFoundation\Cookie;
61
use Symfony\Config\FrameworkConfig;
62
63
return static function (FrameworkConfig $framework) {
@@ -69,7 +70,7 @@ sessions, check their default configuration:
69
70
->handlerId(null)
71
// improves the security of the cookies used for sessions
72
->cookieSecure('auto')
- ->cookieSamesite('lax')
73
+ ->cookieSamesite(Cookie::SAMESITE_LAX)
74
->storage_factory_id('session.storage.factory.native')
75
;
76
};
0 commit comments