File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,18 @@ Sessions have a lifetime expressed in seconds and stored in the INI variable "se
6363The session handler requires a version of Redis with the ` SETEX ` command (at least 2.0).
6464phpredis can also connect to a unix domain socket: ` session.save_path = "unix:///var/run/redis/redis.sock?persistent=1&weight=1&database=0 ` .
6565
66+ ### Session locking
67+ Following INI variables can be used to configure session locking:
68+ ~~~
69+ # Should the locking be enabled? Defaults to: 0.
70+ redis.session.locking_enabled: 1
71+ # How long should the lock live (in seconds)? Defaults to: value of max_execution_time.
72+ redis.session.lock_expire: 60
73+ # How long to wait between attempts to acquire lock, in microseconds (µs)?. Defaults to: 2000
74+ redis.session.lock_wait_time: 50000
75+ # Maximum number of times to retry (-1 means infinite). Defaults to: 10
76+ redis.session.lock_retries: 10
77+ ~~~
6678
6779## Distributed Redis Array
6880
You can’t perform that action at this time.
0 commit comments