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

Answer by Genia for Express creating new session for each request

$
0
0

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 some additional data like an email for example. `

saveUninitialized: false

Viewing all articles
Browse latest Browse all 3

Trending Articles





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