title: Express connect session expiry not working as expected
body: <p>In a web app am developing using express.js am having a problem expiring sessions when a user has not been active for more than 10 minutes. Am using connect-couchdb as the session store.</p>
  
  <p>I tried setting the req.session.cookie.maxAge = 600000. But this causes the session to expire 10 mins after logging in irrespective of user activity. My understanding of the documentation is that req.session.touch() will be called automatically by the connect middleware and hence maxAge (and the expires date) should get refreshed so it lasts another 10 mins, but it is not happening!!</p>
  
  <p>I also tried setting maxAge to 600000 on each request and calling req.session.save() but even then there is no effect.</p>
  
  <p>What am I doing wrong?</p>