-
|
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_protectionset tostrongwhich causedcurrent_user.is_authenticatedto return false after callinglogin_userfrom socketio routechanging the
session_protectiontobasic or Nonesolves this issue depending on the needs.Thanks,