Node JS session error: express-session deprecated
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
}));
You have to define the genuuid
function somewhere. The express-session
readme is assuming you have already implemented that.
Regarding the warnings, you need to explicitly set the resave
and saveUninitialized
options in your session configuration object.