Skip to content

Commit 2c59168

Browse files
committed
Reword
1 parent a3ece80 commit 2c59168

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

session/database.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@ Store Sessions in a key-value Database (Redis)
1717
This section assumes that you have a fully-working Redis server and have also
1818
installed 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

3133
First, define a Symfony service for the connection to the Redis server:
3234

0 commit comments

Comments
 (0)