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 53cbda4 + 51e05f7 commit 1605b92Copy full SHA for 1605b92
session.rst
@@ -664,6 +664,17 @@ and only the first one stored the CSRF token in the session.
664
replace ``RedisSessionHandler`` by
665
:class:`Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\MemcachedSessionHandler`.
666
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
678
.. _session-database-pdo:
679
680
Store Sessions in a Relational Database (MariaDB, MySQL, PostgreSQL)
0 commit comments