I use Node.js express and express-session
I want to get all session or find session by sessionID in express-session
- I had sessionID and want to find it
- I want to check if user still logged in by check expires time
I use Node.js express and express-session
I want to get all session or find session by sessionID in express-session
Please check below link
express-sessions store your all session in mongodb ,
you can get your all sessions using below query
db.getCollection('sessions').find({})
and use bellow query for find by sessionID
db.getCollection('sessions').find({'sessionID':"Your SessionID"})