What's difference with express-session and cookie-session?

后端 未结 7 1301
既然无缘
既然无缘 2021-01-30 00:00

I am new with Express. As Express 4.x has removed bundled middlewares. Any middleware I want to use should be required. When I read the README with exp

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 00:45

    Basically, express-session is more abstract, it supports different session stores (like files, DB, cache and whatnot).

    And cookie-session is a simple / lightweight cookie-based (cookie is the only storage engine supported: all the session info is stored on the client, in a cookie) session implementation. This kind of sessions is probably most famous for its Rails implementation.

提交回复
热议问题