javascript - How do I set and read a cookie using socket.io? -
i'm using socket.io in node.js app , i'm trying set simple cookie , read value of cookie later. how do socket.io? support natively or need write client-side functions manipulating cookies , create socket.io events use them?
socket.io
can use different transport mechanisms (http://socket.io/#browser-support), e.g. flash raw sockets. they're not related common http connection @ all, hence it's better set cookie manually @ client-side.
setting cookies won't affect flash connection @ all, though. may need manually not generate token, bypass connection parameter.
Comments
Post a Comment