dlwagner / issue-tracker

issue-tracker built with express, mongoose, mongodb-Atlas
1 stars 0 forks source link

Warning: connect.session() MemoryStore is not designed for a production environment #4

Closed dlwagner closed 4 years ago

dlwagner commented 4 years ago

This warning shows up when I deploy to production on Heroku:

Warning: connect.session() MemoryStore is not designed for a production environment, as it will leak memory, and will not scale past a single process

I already have Auth0 session management implemented. It appears to be working because I am extracting email and username from the session cookie and using that information in the app.

I don't know how to proceed at this point. It may be that I need to further implement session management for the app itself and for the mongodb-atlas implementation.

Web search links to follow up on: expressjs/session#556 express-session readme express-session installation How to Manage Session using Node.js and Express Auth0 redirects and session handling

dlwagner commented 4 years ago

RESOLVED

added connect-mongo lib and then added mongoDB to the session. This has the effect of making the Warning message go away.