When connecting to a remote cluster on MongoDB Atlas, req.session appears to be occasionally inconsistent (in previous state), but becomes correct after re-visiting route (manual refresh of page).
I was also able to reproduce this with a port-forwarded non-clustered db hosted remotely (ping around 103ms).
This behavior doesn't seem to be reproducible with a local database.
Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
I'm submitting a ...
Summary
When connecting to a remote cluster on MongoDB Atlas,
req.session
appears to be occasionally inconsistent (in previous state), but becomes correct after re-visiting route (manual refresh of page). I was also able to reproduce this with a port-forwarded non-clustered db hosted remotely (ping around 103ms).This behavior doesn't seem to be reproducible with a local database.