rfc:deprecate-get-post-sessions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:deprecate-get-post-sessions [2024/03/03 12:43] – Mention SID deprecation dharman | rfc:deprecate-get-post-sessions [2024/08/25 12:18] (current) – the RFC has been implemented cmb | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Deprecate GET/POST sessions ====== | ====== PHP RFC: Deprecate GET/POST sessions ====== | ||
- | * Version: 0.1 | + | * Version: 0.2 |
* Date: 2024-03-03 | * Date: 2024-03-03 | ||
* Authors: Kamil Tekiela < | * Authors: Kamil Tekiela < | ||
- | * Status: | + | * Status: |
* Target Version: PHP 8.4 | * Target Version: PHP 8.4 | ||
* Implementation: | * Implementation: | ||
Line 24: | Line 24: | ||
Setups that use default settings, such as the following, will NOT trigger a deprecation warning: | Setups that use default settings, such as the following, will NOT trigger a deprecation warning: | ||
- | |||
- | session.use_cookies=On | ||
session.use_only_cookies=On | session.use_only_cookies=On | ||
session.use_trans_sid=Off | session.use_trans_sid=Off | ||
Line 32: | Line 30: | ||
Installations that have either of these switches in a different position will generate a deprecation warning: | Installations that have either of these switches in a different position will generate a deprecation warning: | ||
- | session.use_cookies=Off ; Will generate a deprecation warning | ||
session.use_only_cookies=Off ; Will generate a deprecation warning | session.use_only_cookies=Off ; Will generate a deprecation warning | ||
session.use_trans_sid=On ; Will generate a deprecation warning | session.use_trans_sid=On ; Will generate a deprecation warning | ||
+ | Changing any of the following settings will be deprecated: | ||
- | The goal is to remove these features completely in PHP 9.0. The above INI entries will be removed, as well as additional entries called | + | * < |
+ | * < | ||
+ | * < | ||
+ | * <php>session.trans_sid_hosts</ | ||
+ | * < | ||
- | The deprecation | + | Setting any of these options through < |
+ | |||
+ | The constant < | ||
+ | |||
+ | The goal is to remove these features completely in PHP 9.0. The above-listed INI entries and the constant < | ||
+ | |||
+ | |||
+ | ===== session.use_cookies = Off ===== | ||
+ | |||
+ | I can't confirm whether it was intentional to allow the usage of cookie sessions without sending the cookie, but people have used this trick to adhere to strict PSR-7 standard. As explained by [[https:// | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
- | Apart from generating a deprecation notice, no other immediate backward incompatible changes are foreseen. However, once these settings get removed in the next major PHP version, using any of the INI settings will become impossible. | + | Apart from generating a deprecation notice, no other immediate backward incompatible changes are foreseen. However, once these settings get removed in the next major PHP version, using any of these INI settings will become impossible. |
+ | |||
+ | Using automatic transformation of URLs will become impossible out of the box starting with PHP 9.0. To keep using this feature, PHP users will have to implement it in userland. While PHP will not read the session token from GET/POST parameters automatically anymore, it will still be possible to start a session with an ID received in such a way by manually setting it via < | ||
+ | |||
+ | ===== Unaffected Functionality ===== | ||
+ | |||
+ | Function < | ||
- | Using automatic transformation of URLs will not be possible out of the box. To keep using this feature, PHP users will have to implement it in userland. While PHP will not read the session token from GET/POST parameters automatically anymore, it will remain possible to start a session with an ID received in such a way by manually | + | The hack which allows for manual control |
===== Version ===== | ===== Version ===== | ||
Line 57: | Line 74: | ||
As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted. | As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted. | ||
- | Voting started on _ and will end on _. | + | Voting started on 2024-04-09 |
<doodle title=" | <doodle title=" | ||
Line 64: | Line 81: | ||
</ | </ | ||
+ | ===== Implementation ===== | ||
+ | - merged into '' | ||
+ | - merged as [[https:// | ||
+ | - documentation update pending | ||
rfc/deprecate-get-post-sessions.1709469817.txt.gz · Last modified: 2024/03/03 12:43 by dharman