@@ -154,17 +154,16 @@ Configuring Garbage Collection
154
154
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
155
155
156
156
When a session opens, PHP will call the ``gc `` handler randomly according to the
157
- probability set by ``session.gc_probability `` / ``session.gc_divisor ``. For
158
- example if these were set to ``5/100 `` respectively, it would mean a probability
159
- of 5%. Similarly, ``3/4 `` would mean a 3 in 4 chance of being called, i.e. 75%.
157
+ probability set by ``session.gc_probability `` / ``session.gc_divisor `` in ``php.ini ``.
158
+ For example if these were set to ``5/100 ``, it would mean a probability of 5%.
160
159
161
- If the garbage collection handler is invoked, PHP will pass the value stored in
162
- the `` php.ini `` directive `` session.gc_maxlifetime ``. The meaning in this context is
163
- that any stored session that was saved more than ``gc_maxlifetime `` ago should be
164
- deleted. This allows one to expire records based on idle time.
160
+ If the garbage collection handler is invoked, PHP will pass the value of
161
+ `` session.gc_maxlifetime ``, meaning that any stored session that was saved more
162
+ than ``gc_maxlifetime `` seconds ago should be deleted. This allows to expire records
163
+ based on idle time.
165
164
166
165
However, some operating systems (e.g. Debian) do their own session handling and set
167
- the ``session.gc_probability `` variable to ``0 `` to stop PHP doing garbage
166
+ the ``session.gc_probability `` directive to ``0 `` to stop PHP doing garbage
168
167
collection. That's why Symfony now overwrites this value to ``1 ``.
169
168
170
169
If you wish to use the original value set in your ``php.ini ``, add the following
0 commit comments