express 4.0 , express-session with odd warning message express 4.0 , express-session with odd warning message express express

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).


I found issue useful:

https://github.com/expressjs/session/issues/56

app.use(session({    secret: cookie_secret,    resave: true,    saveUninitialized: true}));


I don't have enough rep to add this as comment. I added this for my default value of Ben's answer.

secret: process.env.SESSION_SECRET || '<mysecret>',