-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session update #586
Comments
This is not issue, but more a question, please post it http://groups.google.com/group/socket_io/ instead, so we can keep this to focus on real bugs socket.io. Thanks <3 |
This was referenced May 26, 2021
This was referenced Nov 21, 2022
darrachequesne
added a commit
that referenced
this issue
Jul 8, 2024
darrachequesne
pushed a commit
that referenced
this issue
Jul 8, 2024
These additional messages will help more quickly diagnose the reason for error messages.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I ran into a problem with sessions within socket.io.
Everything works as sopposed until a users logs in... Problem is that changing the session like example:
app.get('log/:id?', function(req, res){
...
req.session.auth.userId = user.id;
});
and then if client send a message:
socket.on('message', function(message){
console.log(hs.session.auth.user.ID);
});
Problem is that the session has not changed. Actually it only changes after a couple of seconds (sometimes several seconds).
Any idea of whats causing this? Any way to update the socket session at the same time as the express session?
Thank you in advance.
Joao Ribeiro
The text was updated successfully, but these errors were encountered: