Best Session Storage Middleware for Express + MongoDB

前端 未结 2 1047
Happy的楠姐
Happy的楠姐 2020-12-24 06:34

I was looking for the best middleware for storing session data in MongoDB to use in a production application that uses express?

I\'ve been looking around and found t

2条回答
  •  我在风中等你
    2020-12-24 07:18

    connect-mongo (https://github.com/kcbanner/connect-mongo) looks better then others.

    express-session-mongo and connect-session-mongo are very old and based on old version of mongodb driver.

    session-mongoose based on mongoose, that slower than mongodb driver.

    I think connect-mongo is the best choose.

提交回复
热议问题