Skip to content

remove documentation for removed session options #21155

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
Jun 30, 2025
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
35 changes: 0 additions & 35 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3268,39 +3268,6 @@ If ``null``, ``php.ini``'s `session.save_path`_ directive will be relied on:
->savePath(null);
};

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

**type**: ``integer``

This determines the number of bits in the encoded session ID character. The possible
values are ``4`` (0-9, a-f), ``5`` (0-9, a-v), and ``6`` (0-9, a-z, A-Z, "-", ",").
The more bits results in stronger session ID. ``5`` is recommended value for
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. No alternative
is provided as PHP 8.4 has deprecated the related option.

sid_length
..........

**type**: ``integer``

This determines the length of session ID string, which can be an integer between
``22`` and ``256`` (both inclusive), ``32`` being the recommended value. Longer
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. No alternative is
provided as PHP 8.4 has deprecated the related option.

.. _storage_id:

storage_factory_id
Expand Down Expand Up @@ -3963,8 +3930,6 @@ to know their differences.
.. _`session.gc_divisor`: https://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
.. _`session.gc_probability`: https://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
.. _`session.gc_maxlifetime`: https://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
.. _`session.sid_length`: https://www.php.net/manual/en/session.configuration.php#ini.session.sid-length
.. _`session.sid_bits_per_character`: https://www.php.net/manual/en/session.configuration.php#ini.session.sid-bits-per-character
.. _`session.save_path`: https://www.php.net/manual/en/session.configuration.php#ini.session.save-path
.. _`session.use_cookies`: https://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies
.. _`Microsoft NTLM authentication protocol`: https://docs.microsoft.com/en-us/windows/win32/secauthn/microsoft-ntlm
Expand Down
5 changes: 0 additions & 5 deletions session.rst
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,6 @@ 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