express-session doesn't save any value
<p>Before I reload or move to another page, <code>console.log(req.session)</code> print exactly what I saved values but It's no longer. I tried req.session.save(), req.session.regenerate({..}) or used .save() and .reload() at the same time. I cannot understand why It happen. I'm struggling with this 6-hours.</p>

<p>app.js</p>

<pre><code>var session = require('express-session');

app.use(session({
    cookie: {
        maxAge:30 * 60 * 1000,
        expires: 30* 60 * 1000,
        httpOnly: true
    },
    rolling: true,
    resave: true,
    saveUninitialized: true,
    secret: '~~~~~'
}));
</code></pre>

<p>routes/index.js</p>

<pre><code>router.get('/', function(req, res, next) {
    req.session.test = true;
    req.session.save();
    console.log(req.session);
    res.render('index');
});
router.get('/reg', function(req, res){
    console.log(req.session);
    res.render('another');
}
</code></pre>

<p>When I access 'localhost:3000' the console print like this</p>

<pre><code>Session {
  cookie: 
   { path: '/',
     _expires: 1800000,
     originalMaxAge: 1800000,
     httpOnly: true },
  test: true }
</code></pre>

<p>But If I go to 'localhost:3000/reg', It's gone.</p>

<pre><code>Session {
  cookie: 
   { path: '/',
     _expires: 1800000,
     originalMaxAge: 1800000,
     httpOnly: true } }
</code></pre>

<p>package ver.</p>

<ul>
<li>"express": "~4.13.1",</li>
<li>"express-session": "^1.14.0"</li>
</ul>