Skip to content

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

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 16, 2024

Conversation

alexandre-daubois
Copy link
Member

@alexandre-daubois alexandre-daubois commented Jul 23, 2024

Q A
Branch? 7.2
Bug fix? no
New feature? no
Deprecations? yes
Issues -
License MIT

These options are (very) likely to be deprecated in PHP 8.4. Because of the many reasons of their deprecation, they may be deprecated in Symfony as well starting the next version.

@alexandre-daubois
Copy link
Member Author

For the record, the deprecation poll is closed and it has been confirmed for 8.4: https://wiki.php.net/rfc/deprecations_php_8_4#sessionsid_length_and_sessionsid_bits_per_character

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Aug 13, 2024

NativeSessionStorage also has references to these ini options. Can you please have a look and advise what we should do there?

@stof
Copy link
Member

stof commented Aug 13, 2024

NativeSessionStorage should also trigger a deprecation when those options are passed (not just FrameworkBundle)

@alexandre-daubois
Copy link
Member Author

PR updated so NativeSessionStorage also throws a deprecation warning

@alexandre-daubois alexandre-daubois changed the title [FrameworkBundle] Deprecate session.sid_length and session.sid_bits_per_character config options [FrameworkBundle][HttpFoundation] Deprecate session.sid_length and session.sid_bits_per_character config options Aug 19, 2024
@alexandre-daubois alexandre-daubois force-pushed the session-deprecs branch 3 times, most recently from 72c6f7e to e31686d Compare August 27, 2024 12:50
@carsonbot carsonbot changed the title [FrameworkBundle][HttpFoundation] Deprecate session.sid_length and session.sid_bits_per_character config options [FrameworkBundle] Deprecate session.sid_length and session.sid_bits_per_character config options Aug 29, 2024
@alexandre-daubois alexandre-daubois force-pushed the session-deprecs branch 2 times, most recently from 07f3dfe to 34f8f5e Compare September 2, 2024 12:11
@alexandre-daubois
Copy link
Member Author

Rebased after the merge of #58244

@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit f91514d into symfony:7.2 Sep 16, 2024
8 of 10 checks passed
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Sep 17, 2024
…_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
@fabpot fabpot mentioned this pull request Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants