File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,19 @@ 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+ 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:
24+
25+ .. code-block :: ini
26+
27+ ; php.ini
28+ session.save_handler = redis
29+ session.save_path = " tcp://192.168.0.178:6379?auth=REDIS_PASSWORD"
30+
31+ (2) The second Symfony-based option is to configure Redis sessions as follows.
32+
2033First, define a Symfony service for the connection to the Redis server:
2134
2235.. configuration-block ::
You can’t perform that action at this time.
0 commit comments