Skip to content

Commit 1605b92

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [HttpFoundation] Allow setting session options via DSN
2 parents 53cbda4 + 51e05f7 commit 1605b92

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

session.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,17 @@ and only the first one stored the CSRF token in the session.
664664
replace ``RedisSessionHandler`` by
665665
:class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\MemcachedSessionHandler`.
666666

667+
.. tip::
668+
669+
When using Redis with a DSN in the
670+
:ref:`handler_id <config-framework-session-handler-id>` config option, you can
671+
add the ``prefix`` and ``ttl`` options as query string parameters in the DSN.
672+
673+
.. versionadded:: 5.4
674+
675+
The support for ``prefix`` and ``ttl`` options in a Redis DSN was
676+
introduced in Symfony 5.4.
677+
667678
.. _session-database-pdo:
668679

669680
Store Sessions in a Relational Database (MariaDB, MySQL, PostgreSQL)

0 commit comments

Comments
 (0)