Skip to content

Commit f39be76

Browse files
[FrameworkBundle][HttpFoundation] Deprecate session.sid_length and session.sid_bits_per_character config options
1 parent f1c7127 commit f39be76

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

reference/configuration/framework.rst

+8
Original file line numberDiff line numberDiff line change
@@ -1874,6 +1874,10 @@ session IDs are harder to guess.
18741874

18751875
If not set, ``php.ini``'s `session.sid_length`_ directive will be relied on.
18761876

1877+
.. deprecated:: 7.2
1878+
1879+
The ``sid_length`` option was deprecated in Symfony 7.2.
1880+
18771881
sid_bits_per_character
18781882
......................
18791883

@@ -1886,6 +1890,10 @@ most environments.
18861890

18871891
If not set, ``php.ini``'s `session.sid_bits_per_character`_ directive will be relied on.
18881892

1893+
.. deprecated:: 7.2
1894+
1895+
The ``sid_bits_per_character`` option was deprecated in Symfony 7.2.
1896+
18891897
save_path
18901898
.........
18911899

session.rst

+5
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ Check out the Symfony config reference to learn more about the other available
400400
``session.auto_start = 1`` This directive should be turned off in
401401
``php.ini``, in the web server directives or in ``.htaccess``.
402402

403+
.. deprecated:: 7.2
404+
405+
The ``sid_length`` and ``sid_bits_per_character`` options were deprecated
406+
in Symfony 7.2 and will be ignored in Symfony 8.0.
407+
403408
The session cookie is also available in :ref:`the Response object <component-http-foundation-response>`.
404409
This is useful to get that cookie in the CLI context or when using PHP runners
405410
like Roadrunner or Swoole.

0 commit comments

Comments
 (0)