File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 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)
1717This section assumes that you have a fully-working Redis server and have also
1818installed and configured the `phpredis extension `_.
1919
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:
2224
2325.. code-block :: ini
2426
2527 ; php.ini
2628 session.save_handler = redis
2729 session.save_path = " tcp://192.168.0.178:6379?auth=REDIS_PASSWORD"
2830
29- Alternative you can configure it in the Symfony application .
31+ (2) The second Symfony-based option is to configure Redis sessions as follows .
3032
3133First, define a Symfony service for the connection to the Redis server:
3234
You can’t perform that action at this time.
0 commit comments