Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle][HttpFoundation] Deprecate session.sid_length and session.sid_bits_per_character config options #20129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1874,6 +1874,10 @@ session IDs are harder to guess.

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

.. deprecated:: 7.2

The ``sid_length`` option was deprecated in Symfony 7.2.

sid_bits_per_character
......................

Expand All @@ -1886,6 +1890,10 @@ most environments.

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

.. deprecated:: 7.2

The ``sid_bits_per_character`` option was deprecated in Symfony 7.2.

save_path
.........

Expand Down
5 changes: 5 additions & 0 deletions session.rst
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ Check out the Symfony config reference to learn more about the other available
``session.auto_start = 1`` This directive should be turned off in
``php.ini``, in the web server directives or in ``.htaccess``.

.. deprecated:: 7.2

The ``sid_length`` and ``sid_bits_per_character`` options were deprecated
in Symfony 7.2 and will be ignored in Symfony 8.0.

The session cookie is also available in :ref:`the Response object <component-http-foundation-response>`.
This is useful to get that cookie in the CLI context or when using PHP runners
like Roadrunner or Swoole.
Expand Down
Loading