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

Lines changed: 5 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy