This is a library to use mongodb for storing session data. Compared with the other connect-mongodb, this project is messier and a more "quick-and-dirty" solution before I realize there was this connect-mongodb project, but mine has avoided a possible issue where if mongodb connection has not yet been established when "req.session" is used, things will break in connect-mongodb
- Add authenication support
- Make the code more DRY
- Try to publish on npm
- Add detailed comment
- Fix "quick&dirty" way of query for production use