[php-src] PR #21938: ext/session: secure session configuration defaults (RFC)
| From: | jorgsowa | Date: | Sun, 03 May 2026 12:51:24 +0000 |
| Subject: | [php-src] PR #21938: ext/session: secure session configuration defaults (RFC) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35996@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21938
Author: jorgsowa
Implements the "Secure Session Configuration Defaults" RFC by changing three INI defaults
to provide secure session behavior out of the box:
- session.use_strict_mode: 0 -> 1 (mitigates session fixation)
- session.cookie_httponly: 0 -> 1 (mitigates XSS access to session cookie)
- session.cookie_samesite: "" -> "Lax" (mitigates CSRF)
RFC: https://wiki.php.net/rfc/session_security_defaults