Closed efazati closed 1 year ago
I'm not sure whether this is the same problem as the one I just worked around (Redis database for storing sessions). My problem looked like this:
I found that this was because Flask calls save_session()
at the end of every request, which re-saves the requesting user's session to the back end. My work-around was as follows:
login()
function, add is_login: True
attribute to the session immediately after the server returns a response containing the sessionsave_session()
to check for is_login
early and:
True
and remove the is_login
attribute
I used
session.clear()
with mongodb back-end and delete cookie from client correctly but when user save cookie separately and send to server. I have session with this cookie. How can solve this problem?