File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1845,13 +1845,19 @@ If not set, ``php.ini``'s `session.gc_divisor`_ directive will be relied on.
1845
1845
gc_probability
1846
1846
..............
1847
1847
1848
- **type **: ``integer `` ** default **: `` 1 ``
1848
+ **type **: ``integer ``
1849
1849
1850
1850
This defines the probability that the garbage collector (GC) process is
1851
1851
started on every session initialization. The probability is calculated by
1852
1852
using ``gc_probability `` / ``gc_divisor ``, e.g. 1/100 means there is a 1%
1853
1853
chance that the GC process will start on each request.
1854
1854
1855
+ If not set, ``php.ini ``'s `session.gc_probability `_ directive will be relied on.
1856
+
1857
+ .. versionadded :: 7.2
1858
+
1859
+ Relying on ``php.ini ``'s directive as default for ``gc_probability `` was introduced in symfony 7.2.
1860
+
1855
1861
gc_maxlifetime
1856
1862
..............
1857
1863
@@ -3893,6 +3899,7 @@ The attributes can also be added to interfaces directly::
3893
3899
.. _`session.cookie_samesite` : https://www.php.net/manual/en/session.configuration.php#ini.session.cookie-samesite
3894
3900
.. _`session.cookie_secure` : https://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
3895
3901
.. _`session.gc_divisor` : https://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
3902
+ .. _`session.gc_probability` : https://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
3896
3903
.. _`session.gc_maxlifetime` : https://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
3897
3904
.. _`session.sid_length` : https://www.php.net/manual/en/session.configuration.php#ini.session.sid-length
3898
3905
.. _`session.sid_bits_per_character` : https://www.php.net/manual/en/session.configuration.php#ini.session.sid-bits-per-character
You can’t perform that action at this time.
0 commit comments