8000 minor #15388 Minor rewording (ThomasLandauer) · SirRFI/symfony-docs@0761f16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0761f16

Browse files
committed
minor symfony#15388 Minor rewording (ThomasLandauer)
This PR was merged into the 4.4 branch. Discussion ---------- Minor rewording Main reason was to mention `php.ini` earlier. Commits ------- ebb4053 Minor rewording
2 parents a2de717 + ebb4053 commit 0761f16

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

components/http_foundation/session_configuration.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,16 @@ Configuring Garbage Collection
154154
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
155155

156156
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%.
160159

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.
165164

166165
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
168167
collection. That's why Symfony now overwrites this value to ``1``.
169168

170169
If you wish to use the original value set in your ``php.ini``, add the following

0 commit comments

Comments
 (0)
0