nodejs tips and tricks |
OK I just spend hours trying to make the sessions work - but every time I went to another the page the sessions was cleared.
Code: //express session test Finally, after much googling I figured out what it was. It wasn't that the sessions weren't working, it was because I was using an external library hosted on cdnjs to load a html page. So essentially it is a CORS issue that causes the sessions not to persist. This is just a heads up if anyone else has the same problem.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
|
Welcome Guest, Not a member yet? Register Sign In |