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
63
63
The session handler requires a version of Redis with the ` SETEX ` command (at least 2.0).
64
64
phpredis can also connect to a unix domain socket: ` session.save_path = "unix:///var/run/redis/redis.sock?persistent=1&weight=1&database=0 ` .
65
65
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
+ ~~~
66
78
67
79
## Distributed Redis Array
68
80
You can’t perform that action at this time.
0 commit comments