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.
2 parents 0b07283 + 77f2b79 commit 405157bCopy full SHA for 405157b
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