title: Empty object with req.session in cookie session express package
body: <p>I'm trying to solve that for a long time.  I'm trying to make cookie session using express cookie session and react on the front. Cookie should be in my req.session object but instead it is empty. </p>
  
  <p>Here's my code:</p>
  
  <pre><code>const cookieSession = require('cookie-session');
  const express = require('express');
  const app = express();
  const cookieParser = require('cookie-parser'); 
  const bodyParser = require('body-parser');
  const keys = require('./config');
  
  
  app.use(express.urlencoded({ extended: true }));
  app.use(bodyParser.json());
  
  
  app.set('trust proxy', 1);
  
  app.use(cookieSession({
    name: 'session',
    maxAge: 3000000,
    keys: ['key1', 'key2']
  }))
  
  app.get('/t', function (req, res) {
  
   // here I'm expecting to get cookie object
    res.send(req.session);
  
  })
  
  
  require('./routes/tasksRoutes')(app);
  require('./routes/checkAnswers')(app)
  
  app.listen(5000);
  </code></pre>
  
  <p>Could you help me on that one. Why I'm getting empty object?
  Thank you guys!</p>