I am new to nodejs/mongo so i ended up rolling my own session middleware because i didnt know about express-session-mongo.
In my middleware, i store the users id in the session (via express's session middleware), and then load the logged in user object on every request. I also allow the user to store their user/pass in an httpOnly cookie for a 'remember me' functionality.
The docs page for that npm leaves something to be desired.
My question is: what are the advantages of that module vs what i wrote? Am i doing something stupid? How is what they do better than what i do?