title: node.js socket.io get cookie value
body: <p>i want to get cookie value in node server with socket.io</p>
  
  <p>so every time socket send message to server i check the value of cookie</p>
  
  <p>(i don't want session cookie) only in express i get the cookie by</p>
  
  <pre><code> router.get('/', function(req, res, next) {
  
    var cookie_id = req.cookies.userIDf;
    console.log(cookie_id);
     res.render('index', { title: 'Express' });
  });
  </code></pre>
  
  <p>its work here but with socket.io i cant get cookie any solution ?</p>
  
  <pre><code>io.sockets.on('connection', function (socket) {
  
  
  var cookief =socket.handshake.headers['cookie'];
    console.log(cookief); // its give me session  id not the cookies
   });
  </code></pre>