Node.js server restart drops the sessions

后端 未结 5 1752
Happy的楠姐
Happy的楠姐 2020-12-24 03:40

I\'m having fully functional user signup/authentication system using express and connect middleware.

app.use(express.session({store: require(\'connect\').ses         


        
5条回答
  •  离开以前
    2020-12-24 04:30

    I agree with everybody about redis, but I think that different technologies is a problem in terms of software maintenance. If you are using mongodb for example there is connect-mongo (https://npmjs.org/package/connect-mongo), if you are using mysql there is connect-mysql (https://npmjs.org/package/connect-mysql), connect-couchdb for couchdb (https://npmjs.org/package/connect-couchdb) and so on.

提交回复
热议问题