From express 4.0 , express-session with odd warning message
As the warnings say, the default values will change so they want to ensure that by setting the values explicitly now, you won’t run into unexpected behavior when the defaults do change (in the near future).
app.use(session({
secret: cookie_secret,
resave: true,
saveUninitialized: true
}));