↧
Answer by Genia for Express creating new session for each request
For those landing here for a similar multi session creation, I solved my issue by setting this flag in the session middleware to false. It saves your cookie in DB only when it has been updated with...
View ArticleAnswer by enRaiser for Express creating new session for each request
why don't you use MongoStore to store session data? may be that will solve your problem. app.use(session({ secret: 'mysecret', resave: false, saveUninitialized: false, expires: new Date(Date.now() +...
View ArticleExpress creating new session for each request
Express-session is creating a new session (new sessionID) for new request. And it happens intermittently, for example sometimes for first 3-4 hits it will work fine and keep using same existing session...
View Article
More Pages to Explore .....