From b29c212dfc233a2f7bf743462a20cea7a4991626 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Tue, 25 Oct 2022 17:42:28 +0200 Subject: [PATCH] [Session] Add docs to define redis session handler via php.ini directly --- session/database.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/session/database.rst b/session/database.rst index cacc56b18fa..0637759dfb0 100644 --- a/session/database.rst +++ b/session/database.rst @@ -17,6 +17,17 @@ Store Sessions in a key-value Database (Redis) This section assumes that you have a fully-working Redis server and have also installed and configured the `phpredis extension`_. +Via the redis extension it is possible to configure redis as a session handler +directly in the servers ``php.ini`` file. + +.. code-block:: ini + + ; php.ini + session.save_handler = redis + session.save_path = "tcp://192.168.0.178:6379?auth=REDIS_PASSWORD" + +Alternative you can configure it in the Symfony application. + First, define a Symfony service for the connection to the Redis server: .. configuration-block::