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
Cookie.DiscardingCookie is not setting sameSite value #10122
Comments
You are correct that |
I am adding this issue to the 2.8.4 milestone, maybe I find time to look into it. |
I am not sure why but there was a comment from @wadouk which got deleted (by @wadouk? Or was there a problem with GitHub?) From my email inbox:
|
A possible fix is here: #10693 |
Don't remember ... |
Issue
When Session is cleared using
withNewSession
ordata
map is empty in Session then the play_framework code appliesDiscardingCookie
which reset thePLAY_SESSION
.But
DiscardingCookie
is not usingsameSite
settings. So the set-cookie is ignored by browser.Play Version
2.7.4
API
DiscardingCookie()
Operating System
Any
JDK
Any
Library Dependencies
NA
Expected Behavior
DiscardingCookie
should usesameSite
settingsSession.isEmpty
is trueActual Behavior
sameSite
settings is not applied when Session data map is emptyReproducible Test Case
The text was updated successfully, but these errors were encountered: