Currently, I'm using express-session:
https://github.com/expressjs/session
combined with
connect-mongo:
https://github.com/jdesboeufs/connect-mongo
I use the boilerplate examples from the site, and I can successfully generate sessions for logged in users.
But I also have a health monitor which pings the site every few seconds, and this is also generating sessions on the server which is clogging up the database.
How can I generate sessions for logged in users only?