Can I access a cookie from Socket.io?

node.js, socket.io

Solution

`client.request.headers.cookie` leads to race conditions as the cookie always points to the last logged in user.

Please see: Socket.IO Authentication.

Problem

I want to set some user information in a cookie and be able to access it on connection, is this possible?

Original source

Related problems