CNode

how to fix waring 'MemoryStore is not designed for a production environment'?

Ffreizl发布于14 年前最后回复14 年前2 回复6075 浏览0 收藏

这个问题有办法解决么?

$ NODE_ENV=production node app.js

Warning: connection.session() MemoryStore is not
designed for a production environment, as it will leak 
memory, and obviously only work within a single process.
查看回复

回复 (2)

Y
yeahcheung#1·14 年前

使用connect-mongo或connect-redis代替MemoryStore 存储session

参与回复
登录后即可参与回复。登录