Quantcast
Channel: Express creating new session for each request - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article


Answer 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 Article

Express 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
Browsing all 3 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>