Flask-SocketIo | After logging in Chrome dosen't return session['name'] value but Firefox does. #1716
Unanswered
KarteekAti
asked this question in
Q&A
Replies: 1 comment 6 replies
-
I'm not sure if this is the problem or not, but your async function get_Name(){
const response = await fetch("/get_name");
const text = await response.json();
return text["name"];
} You may want to add a print statement in the server to verify if the server has the correct name in the session or not. If it does, then this is a problem with your front end, unrelated to Flask-SocketIO. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I log in using User-id Chrome doesn't return the Users name using session['name'], which I provided using the flasks session. But firefox does.
Chrome Screenshot
Firefox Screenshot
Python
JS
Chrome returns an empty username, whereas Firefox returns logged username
Beta Was this translation helpful? Give feedback.
All reactions