title: How can you use cookies with superagent?
body: <p>I'm doing cookie session management with express with something like this:</p>
  
  <pre><code>req.session.authentication = auth;
  </code></pre>
  
  <p>And I verify the authenticated urls with something like </p>
  
  <pre><code>if(!req.session.authentication){res.send(401);}
  </code></pre>
  
  <p>Now I'm building tests for the URLs with mocha, <a href="http://visionmedia.github.com/superagent/" rel="noreferrer">superagent</a> and <a href="https://github.com/visionmedia/should.js" rel="noreferrer">should</a>, however I can't seem to find a way to get/set the cookie with superagent. I even tried to request the login before the authenticated test but it is not working, </p>
  
  <p>I have tried adding the request to the login in the before statement for the mocha BDD suite, however it is still telling me that the request is unauthorized, I have tested the authentication doing the requests from the browser, however it is not working from the suite any ideas why?</p>