title: express sessions do not work - new session upon every request
body: <p>I use express-session to set up session management in the following way: </p>
  
  <pre><code>var express = require('express');
  var session = require('express-session');
  var app = express();
  var mongoose = require('mongoose');
  var MongoStore = require('connect-mongo')(session);
  
  mongoose.connect('mongodb://localhost/sessionTest');
  
  
  app.listen(3000, function () {
  });
  
  app.use(session({
      secret: 'justsomestuff',
      resave: false,
      saveUninitialized: false,
      cookie: {  } ,
      store: new MongoStore({mongooseConnection: mongoose.connection})
  }));
  
  app.get('/first', function (req, res) {
      console.log('first');
      req.session.test = 'Tester';
      req.session.save();
      console.log(req.sessionID);
      res.send(req.sessionID);
  }); 
  
  app.get('/second', function (req, res) {
      console.log('second');
      if (req.session)
              console.log('session exists');
      console.log(req.sessionID);
      console.log(req.session.test);
      res.send(req.sessionID);
  });
  </code></pre>
  
  <p>But a new session is established with a new session id every time I call /first or /second with</p>
  
  <pre><code>curl 127.0.0.1:3000/first
  curl 127.0.0.1:3000/second
  </code></pre>
  
  <p>I use </p>
  
  <pre><code>"connect-mongo": "^1.2.1",
  "express": "~4.13.4",
  "express-session": "^1.14.0",
  </code></pre>
  
  <p>All sessions are in the mongo database as well. </p>
  
  <p>It seems such a straight forward issue, but I simply cannot figure it out. </p>