@@ -119,7 +119,7 @@ be securely controlled from the server side.
119
119
120
120
The ``cookie_lifetime `` setting is the number of seconds the cookie should live
121
121
for, it is not a Unix timestamp. The resulting session cookie will be stamped
122
- with an expiry time of ``time()``+ ``cookie_lifetime `` where the time is taken
122
+ with an expiry time of ``time() `` + ``cookie_lifetime `` where the time is taken
123
123
from the server.
124
124
125
125
Configuring Garbage Collection
@@ -132,7 +132,7 @@ of 5%. Similarly, ``3/4`` would mean a 3 in 4 chance of being called, i.e. 75%.
132
132
133
133
If the garbage collection handler is invoked, PHP will pass the value stored in
134
134
the ``php.ini `` directive ``session.gc_maxlifetime ``. The meaning in this context is
135
- that any stored session that was saved more than ``maxlifetime `` ago should be
135
+ that any stored session that was saved more than ``gc_maxlifetime `` ago should be
136
136
deleted. This allows one to expire records based on idle time.
137
137
138
138
You can configure these settings by passing ``gc_probability ``, ``gc_divisor ``
@@ -173,8 +173,8 @@ example, it is common for banking applications to log the user out after just
173
173
5 to 10 minutes of inactivity. Setting the cookie lifetime here is not
174
174
appropriate because that can be manipulated by the client, so we must do the expiry
175
175
on the server side. The easiest way is to implement this via garbage collection
176
- which runs reasonably frequently. The cookie `` lifetime `` would be set to a
177
- relatively high value, and the garbage collection ``maxlifetime `` would be set
176
+ which runs reasonably frequently. The `` cookie_lifetime `` would be set to a
177
+ relatively high value, and the garbage collection ``gc_maxlifetime `` would be set
178
178
to destroy sessions at whatever the desired idle period is.
179
179
180
180
The other option is to specifically checking if a session has expired after the
@@ -258,7 +258,7 @@ without knowledge of the specific save handler.
258
258
259
259
.. note ::
260
260
261
- Before PHP 5.4, you can only proxy user-land save handlers but not
261
+ Before PHP 5.4, you can only proxy user-land save handlers but not
262
262
native PHP save handlers.
263
263
264
264
.. _`php.net/session.customhandler` : http://php.net/session.customhandler
0 commit comments