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
}));

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)