You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To answer your top question, you have both resave and saveUninitialized set to false, so yes you would need to alter your session for the cookie to set, as that is how you configured your session module.
To answer your top question, you have both resave and saveUninitialized set to false, so yes you would need to alter your session for the cookie to set, as that is how you configured your session module.
Ah ok, I hadn't realised that applied to new sessions. That makes sense, thanks!
Hi,
Not sure if this is a weird issue or not, but my app suddenly stopped saving sessions and setting cookies.
This was my express log for the route I was hitting:
Accessing the session object immediately after setting it up
Fixes the issue, and sessions start saving again and cookies are set. I was just wondering why that might be? Here's the new log with the above code:
Here's my app.js file. Commenting out the above lines causes the code to break.
Any ideas why that might be? Am I making a mistake when setting up
Express-Sessions?
Thanks
The text was updated successfully, but these errors were encountered: