Skip to content

Commit 842da33

Browse files
committed
Ddded subsection of PHP Session handler: "Session locking".
1 parent d943a44 commit 842da33

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.markdown

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ Sessions have a lifetime expressed in seconds and stored in the INI variable "se
6363
The session handler requires a version of Redis with the `SETEX` command (at least 2.0).
6464
phpredis 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

0 commit comments

Comments
 (0)