Skip to content

Permanent sessions False and session changes #1686

Answered by aktoak
aktoak asked this question in Q&A
Discussion options

You must be logged in to vote

so after some research, turns out the problem was not with flask-socketio or flask-session but rather with flask-login, i had my
session_protection set to strong which caused current_user.is_authenticated to return false after calling login_user from socketio route
changing the session_protection to basic or None solves this issue depending on the needs.

Thanks,

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by miguelgrinberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants