-
-
Notifications
You must be signed in to change notification settings - Fork 978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to access session object for the session to save or set cookies? #927
Comments
To answer your top question, you have both |
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: