title: In Socket.io, how to get the stored cookie information?
body: <p>In node application using express, I have stored cookie information. Now I need to get the stored cookie information in socket.io. How can I get this?</p>
  
  <pre><code>    app.use(function (req, res, next) {
  
          res.cookie('cookieName','1', { maxAge: 50000, httpOnly: true });
      });
  
      io.sockets.on('connection', function (socket) {
  
       //here i need to access the cookie.how can i do this
  
      });
  </code></pre>