Skip to content

Commit 7b9a3e5

Browse files
javiereguiluzxabbuh
authored andcommitted
Minor rewords
1 parent 4dc0dac commit 7b9a3e5

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

components/http_foundation/session_configuration.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,19 @@ the ``php.ini`` directive ``session.gc_maxlifetime``. The meaning in this contex
139139
that any stored session that was saved more than ``gc_maxlifetime`` ago should be
140140
deleted. This allows one to expire records based on idle time.
141141

142-
However, because some operating systems do their own session handling and have set the ``session.gc_probability`` variable to 0 (to stop PHP doing garbage collection), Symfony now overwrites this value to a value of 1.
142+
However, some operating systems do their own session handling and set the
143+
``session.gc_probability`` variable to ``0`` to stop PHP doing garbage
144+
collection. That's why Symfony now overwrites this value to ``1``.
143145

144-
If you wish to use the value set in your PHP.ini, you would need to add the following configuration:
146+
If you wish to use the original value set in your ``php.ini``, add the following
147+
configuration:
145148

146149
.. code-block:: yaml
147150
148-
# config.yml
149-
framework:
150-
session:
151-
gc_probability: null
151+
# config.yml
152+
framework:
153+
session:
154+
gc_probability: null
152155
153156
You can configure these settings by passing ``gc_probability``, ``gc_divisor``
154157
and ``gc_maxlifetime`` in an array to the constructor of

0 commit comments

Comments
 (0)