title: nodejs/express. regenerate session
body: <p>I have a simple nodejs/express application. To save user authentication I use:</p>
  
  <pre><code>req.session.auth = user;
  </code></pre>
  
  <p>but <a href="http://www.senchalabs.org/connect/session.html" rel="nofollow">this</a> I've found regenerate method:</p>
  
  <pre><code>req.session.regenerate(function (err) {
     req.session.auth = user;
  });
  </code></pre>
  
  <p>My question is: should I use regenerate method or just req.session.auth = user;</p>