title: Trying to view all logged in Users in Express.js Node.js Passport.js
body: <p>Trying to see all sessions of all logged in users in Express Passport, and want be able to see who is currently logged in. Whats the best and quickest means?</p>
  
  <p>I was thinking maybe I could do this at login and update the user model db 'online' boolean variable to true. Then I can run a check on the Users.find() for online=true...</p>
  
  <p>But how will I check this during the event of user logging off or their session ending?</p>
  
  <p>Unless there is an easier way to do this without writing to the db? </p>
  
  <p>I'd eventually like the user to maintain the option to opt out of being viewable online.</p>