When running node js in production mode, this warning is logged :
Warning: connection.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Doing a brief research, i found that i should use other alternatives for session storage by passing express-session-mongo or express-session-redis.
My questions :
Thank You !
I resolved it by using the cookie-session
library, i simply flowed the tutorial.
cookie-session on github