How is nodejsssession set?

  node.js, question

ue, 02 Aug 2016 06:25:28 GMT express-session deprecated undefined resave option; provide resave option at routesadminindex.js:7:12
Tue, 02 Aug 2016 06:25:28 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at routesadminind
Prompt for the above two error messages

var express = require('express');
 var router = express.Router();
 var session = require('express-session');
 var login = require('./login');
 
 /* GET home page. */
 router.use(session({
 secret : "hello",
 cookie : {
 maxAge : 60000
 bracket
 }));
 
 router.get('/', function(req, res, next) {
 if(req.session.times){
 Req.session.times;
 Res.render ('admin/index',' title:' express' plus req.session.times});
 }else{
 req.session.times = 1;
 bracket
 
 });
 
 module.exports = router;
 The page cannot be opened.  What is wrong with the code?

Come on, lookissue123

router.use(session({
 secret : "hello",
 cookie : {
 maxAge : 60000
 },
 resave: true,
 saveUninitialized: true
 }));

BTW, why yourssessionNot written inappOn, must hang in some route inside? This seems odd