madhums / node-express-mongoose-demo

A simple demo app using node and mongodb for beginners (with docker)
https://nodejs-express-demo.fly.dev
MIT License
5.12k stars 1.38k forks source link

Session storage does not work #198

Closed anthonygore closed 5 years ago

anthonygore commented 8 years ago

The duo of connect-mongo and express-session does not work. If you log in to the site you'll notice there is no entry in the sessions collection in mongo, and there is no connect.sid cookie stored by your browser.

If you remove cookie-session from Express it works fine. Not sure why both are used in this project anyway..?

with0out commented 7 years ago

yep, delete either of these two, the other would work fine, no idea why use both...