-
i noticed when making flask session not permanent in the config file using P.S i am using Flask-Sessions (server side sessions) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Do you have example code? Without knowing how you configured Flask and Flask-Session it is not possible for me to debug. If at all possible, it would be useful if you can modify the sessions example in this repository to show the problem. Thanks. |
Beta Was this translation helpful? Give feedback.
-
so after some research, turns out the problem was not with flask-socketio or flask-session but rather with flask-login, i had my Thanks, |
Beta Was this translation helpful? Give feedback.
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 tostrong
which causedcurrent_user.is_authenticated
to return false after callinglogin_user
from socketio routechanging the
session_protection
tobasic or None
solves this issue depending on the needs.Thanks,