express.io icon indicating copy to clipboard operation
express.io copied to clipboard

http - req.session differs from socket - req.session

Open JimtotheB opened this issue 12 years ago • 1 comments

Im logging in clients via a POST request to /login, I update the session and "console.log(req.session)" and it prints out correctly.

On the client, on success from the POST, Im emitting an event to update the session, and co the necessary clean up to deal with the new user, however "console.log(req.session)" prints the old values until I manually refresh the client.

I saw a closed issue talking about a problem that sounded similar. https://github.com/techpines/express.io/issues/4

JimtotheB avatar Jun 29 '13 19:06 JimtotheB

Experienced this issue as well.

oleduc avatar Apr 06 '14 20:04 oleduc