title: Renewing Cookie-session for express.js
body: <p>I'm using the <a href="https://github.com/expressjs/cookie-session" rel="nofollow">cookie-session</a> module for Expresss.js to deal with sessions.</p>
  
  <p>I would like the sessions to be renewed on every page load (or ajax call). That's how they usually work anywhere. </p>
  
  <p><strong>The documentation doesn't say a word about it.</strong></p>
  
  <p>I've tried doing this, but without success:</p>
  
  <pre><code>app.use(function(req,res,next ){
       req.sessionOptions.maxAge = 20*1000;
       return next();
  });
  </code></pre>