Skip to content

Commit 18ff87a

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [HttpFoundation] Allow setting session options via DSN
2 parents aa58442 + 8a6edac commit 18ff87a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

session.rst

+6
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,12 @@ 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+
667673
.. _session-database-pdo:
668674

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

0 commit comments

Comments
 (0)