title: express 4.0 , express-session with odd warning message
body: <p>I am trying to work through setting up a nodejs app using express 4.x. After stumbling through the middleware-removal issues, I finally got it working.</p>
  
  <p>however, there was a couple of warning messages in the following line of code :</p>
  
  <pre><code>app.use(session({secret: '&lt;mysecret&gt;'})
  </code></pre>
  
  <p>these warnings were :</p>
  
  <pre><code>Sun, 29 Jun 2014 12:45:10 GMT express-session deprecated pass resave option; default value will change at lib\config\express.js:55:11
  
  Sun, 29 Jun 2014 12:45:10 GMT express-session deprecated pass saveUninitialized option; default value will change at lib\config\express.js:55:11
  </code></pre>
  
  <p>in the documentation, the default values for resave and saveUninitialized are true.</p>
  
  <p>so, changing the code to read </p>
  
  <pre><code>app.use(session({secret: '&lt;mysecret&gt;', 
                   saveUninitialized: true,
                   resave: true}));
  </code></pre>
  
  <p>got rid of the warnings.</p>
  
  <p>So, to get to the point of the question:</p>
  
  <p>why should I have to pass these values in if they are the default values, and why don't I have to pass in the other options ?</p>