We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After the patch https://bugs.php.net/bug.php?id=79699 certain session names are buggy and won't work anymore.
The generated cookie name doesn't necessarily match the internal session name which is a problem after the php patch.
'session_config' => [ 'name' => 'my:session', ],
my%3Asession
my:session
Special characters like : should also be escaped during initalisation, so the cookie name and session name match.
:
The text was updated successfully, but these errors were encountered:
According to https://curl.haxx.se/rfc/cookie_spec.html the escaped or forbidden characters should be :, ,, (whitespace) and probably =
,
=
Sorry, something went wrong.
\Laminas\Session\SessionManager::setName() throws an exception for non-alphanumeric characters in the session name. See
\Laminas\Session\SessionManager::setName()
laminas-session/src/SessionManager.php
Line 266 in 9c845a0
This issue can marked as closed.
No branches or pull requests
Bug Report
Summary
After the patch https://bugs.php.net/bug.php?id=79699 certain session names are buggy and won't work anymore.
Current behavior
The generated cookie name doesn't necessarily match the internal session name which is a problem after the php patch.
How to reproduce
my%3Asession
but the module still expects to get a cookie formy:session
, which it won't get with the security patch.Expected behavior
Special characters like
:
should also be escaped during initalisation, so the cookie name and session name match.The text was updated successfully, but these errors were encountered: