title: Node.js server restart drops the sessions
body: <p>I'm having fully functional user signup/authentication system using express and connect middleware.</p>
  
  <pre><code>app.use(express.session({store: require('connect').session.MemoryStore( {reapInterval: 60000 * 10} ) }))
  </code></pre>
  
  <p>The only problem is that sessions drop every time you perform server restart.</p>
  
  <p><a href="https://github.com/remy/nodemon" rel="noreferrer">https://github.com/remy/nodemon</a> - and nodemon restarts node.js every time it detects a file change.</p>
  
  <p>How can I have persistent sessions ?</p>