title: Keep passport session alive during server restart
body: <p>Is there a way that I can maintain the user session over a server restart to help keep my development nice and fast? </p>
  
  <p>I'm working on an ExpressJS node project locally on my machine. I'm using <a href="https://github.com/ChrisWren/grunt-nodemon" rel="noreferrer">Grunt-nodemon</a> to watch my JS files and restart the server once i've made changes. What this means though is that any sessions on my project (there's a user log in) are wiped clean.</p>
  
  <p>Currently if I'm in a deep page somewhere and restart, I'm kicked out to the log-in page and have to re-navigate which is really frustrating.</p>
  
  <p>I'm using passport as the session middleware. I'm using mongoose as my main application datastore, if I can use that somehow that would be super.</p>