Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd2056 commit b29c212Copy full SHA for b29c212
session/database.rst
@@ -17,6 +17,17 @@ Store Sessions in a key-value Database (Redis)
17
This section assumes that you have a fully-working Redis server and have also
18
installed and configured the `phpredis extension`_.
19
20
+Via the redis extension it is possible to configure redis as a session handler
21
+directly in the servers ``php.ini`` file.
22
+
23
+.. code-block:: ini
24
25
+ ; php.ini
26
+ session.save_handler = redis
27
+ session.save_path = "tcp://192.168.0.178:6379?auth=REDIS_PASSWORD"
28
29
+Alternative you can configure it in the Symfony application.
30
31
First, define a Symfony service for the connection to the Redis server:
32
33
.. configuration-block::
0 commit comments