Can't get Express session ID from cookies w/ Socket.IO Can't get Express session ID from cookies w/ Socket.IO express express

Can't get Express session ID from cookies w/ Socket.IO


I never would have thought of this until told to look at the initialization on the client side. I changed the address from localhost to the explicit IP (127.0.0.1) and the cookies are now being sent with the header in Socket.IO. I'm not sure if this is obvious or not, as I assumed localhost was being mapped to 127.0.0.1 anyway.