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

Created on 16 Feb 2018  路  2Comments  路  Source: expressjs/session

Hi ExpressJs

I have a NodeJs app, where on production I am getting this message.

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

After some debugging, I found out that this is coming from you.
In precise, from here

How can we fix this? What should we do to do not have any _memory leaks_?

Thank you in advance.

question

Most helpful comment

Just choose a store from the list https://github.com/expressjs/session/blob/master/README.md#compatible-session-stores that fits your needs best and provide it as the store option https://github.com/expressjs/session/blob/master/README.md#store :+1:

All 2 comments

Just choose a store from the list https://github.com/expressjs/session/blob/master/README.md#compatible-session-stores that fits your needs best and provide it as the store option https://github.com/expressjs/session/blob/master/README.md#store :+1:

Awesome! Thanks!

Was this page helpful?
0 / 5 - 0 ratings