Express-Session not persisting / Working in production even having a store option in the session options

View other answers to this thread
Start a personal dev blog on your domain for free and grow your readership.

3.4K+ developers have started their personal blogs on Hashnode in the last one month.

Write in Markdown · Publish articles on custom domain · Gain readership on day zero · Automatic GitHub backup and more

Ipseeta Priyadarshini's photo

Hey Aniketh Saha I can't say much about firebase but I was facing the same problem with Redis session store. In production, the disk persistence was on, but Redis failed to save snapshots. As a result, all the writes were stopped and sessions couldn't be created. So, I suggest that you verify if Firebase is actually able to store data.

Aniketh Saha's photo

Yeah its storing something in firebase with a collection name session . And there are huge number of records in that collection . I am using the same firebase store for development its working. Idk why its not working for production