Skip to content

Commit 405157b

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Switch to const `Cookie::SAMESITE_LAX`
2 parents 0b07283 + 77f2b79 commit 405157b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

session.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ sessions, check their default configuration:
5757
.. code-block:: php
5858
5959
// config/packages/framework.php
60+
use Symfony\Component\HttpFoundation\Cookie;
6061
use Symfony\Config\FrameworkConfig;
6162
6263
return static function (FrameworkConfig $framework) {
@@ -69,7 +70,7 @@ sessions, check their default configuration:
6970
->handlerId(null)
7071
// improves the security of the cookies used for sessions
7172
->cookieSecure('auto')
72-
->cookieSamesite('lax')
73+
->cookieSamesite(Cookie::SAMESITE_LAX)
7374
->storage_factory_id('session.storage.factory.native')
7475
;
7576
};

0 commit comments

Comments
 (0)