File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,18 @@ Store Sessions in a key-value Database (Redis)
17
17
This section assumes that you have a fully-working Redis server and have also
18
18
installed and configured the `phpredis extension `_.
19
19
20
- Via the redis extension it is possible to configure redis as a session handler
21
- directly in the servers ``php.ini `` file.
20
+ You have two different options to use Redis to store sessions:
21
+
22
+ (1) The first PHP-based option is to configure Redis session handler directly in
23
+ the server ``php.ini `` file:
22
24
23
25
.. code-block :: ini
24
26
25
27
; php.ini
26
28
session.save_handler = redis
27
29
session.save_path = " tcp://192.168.0.178:6379?auth=REDIS_PASSWORD"
28
30
29
- Alternative you can configure it in the Symfony application .
31
+ (2) The second Symfony-based option is to configure Redis sessions as follows .
30
32
31
33
First, define a Symfony service for the connection to the Redis server:
32
34
You can’t perform that action at this time.
0 commit comments