I set cookie token after login with php.
$authToken="kjhjgghfF&^*ghjfbv8756*7&*95576HJgf^%&";
setcookie('auth', $authToken, time()+60*60, '/');
The cookie is set to root path '/' and I see the cookie with EditThisCookie Chrome extension. Now I want to read this cookie with socket.io with each event.
var auth=socket.request.headers.cookies;
// socket.request.cookies - no success also
console.log(auth);
But getting 'undefined', because in headers dont't have cookies propertie.