title: When to use saveUninitialized and resave in express-session
body: <p>I am newbie with the MEAN stack. I read the express-session <a href="https://github.com/expressjs/session" rel="noreferrer">github doc</a> but there are some options which are unclear to me. Those options are <code>saveUninitialized</code> and <code>resave</code>. </p>
  
  <p>Can anyone please explain with <strong>examples</strong> what are the advatanges of using <code>saveUninitialized</code> and <code>resave</code>, and what will the effect be if we change the boolean values in those options.</p>
  
  <p>Syntax:-</p>
  
  <pre><code>app.use(session({
    resave: false,
    saveUninitialized: true,
  }))
  </code></pre>