Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 56069f0

Browse filesBrowse files
committed
minor #20129 [FrameworkBundle][HttpFoundation] Deprecate session.sid_length and session.sid_bits_per_character config options (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [FrameworkBundle][HttpFoundation] Deprecate `session.sid_length` and `session.sid_bits_per_character` config options Related to symfony/symfony#57805 Fixes #20224 Commits ------- f39be76 [FrameworkBundle][HttpFoundation] Deprecate `session.sid_length` and `session.sid_bits_per_character` config options
2 parents e423690 + f39be76 commit 56069f0
Copy full SHA for 56069f0

File tree

2 files changed

+13
-0
lines changed
Filter options

2 files changed

+13
-0
lines changed

‎reference/configuration/framework.rst

Copy file name to clipboardExpand all lines: reference/configuration/framework.rst
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,6 +1882,10 @@ session IDs are harder to guess.
18821882

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

1885+
.. deprecated:: 7.2
1886+
1887+
The ``sid_length`` option was deprecated in Symfony 7.2.
1888+
18851889
sid_bits_per_character
18861890
......................
18871891

@@ -1894,6 +1898,10 @@ most environments.
18941898

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

1901+
.. deprecated:: 7.2
1902+
1903+
The ``sid_bits_per_character`` option was deprecated in Symfony 7.2.
1904+
18971905
save_path
18981906
.........
18991907

‎session.rst

Copy file name to clipboardExpand all lines: session.rst
+5Lines changed: 5 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.