every session becomes a remember session when REMEMBER_COOKIE_REFRESH_EACH_REQUEST is set
See original GitHub issueDescribe the bug
A user is logged in with remember=False
. If the app is configured with REMEMBER_COOKIE_REFRESH_EACH_REQUEST
, the remember cookie gets set anyway.
To Reproduce Steps to reproduce the behavior:
- Add
REMEMBER_COOKIE_REFRESH_EACH_REQUEST = True
to the flask configuration. - Call
login_user(..., remember=False)
- Verify that the remember cookie was set anyway.
Expected behavior
The remember cookie should not be set if the user was logged in with remember=False
Additional context
This seems to be the culprit:
The code below that calls _set_cookie
which sets the remember cookie.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to restore closed tabs and sessions in your web browser
Hold down the [Ctrl] key and click all the tabs you wish to restore. You can also set up Chrome to auto-restore your...
Read more >Firefox Restore Session Display window - Mozilla Connect
I like to keep a huge number of windows and tabs and restore my last session every time I restart. When that happens...
Read more >Chromium Docs - Session History
A browser's session history keeps track of the navigations in each tab, to support back/forward navigations and session restore.
Read more >Session is lost and created as new in every servlet request
Clearing this single cookie or all cookies is a workaround. I was debugging the problem with wget, and I noticed such a header:...
Read more >Saved Sessions | Vivaldi Browser Help
This allows you to open the set of tabs included in a session with one click whenever you need or when the browser...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gimbo https://github.com/maxcountryman/flask-login/pull/473
@maxcountryman I can submit a PR if you agree with the expected behaviour I wrote above