title: Invalidating sessions on password change - Sailsjs
body: <p>How do I invalidate a particular user's active sessions when his/her password is changed?</p>
  
  <p>Sails doesn't provide access to sessions globally and each session can be accessed only via the <code>request</code> object in a controller, so I can't find a way to access all the active sessions of a particular user.</p>
  
  <p>I could query the <code>sessions</code> collection directly if I do not serialize the sessions, since I'm using mongo as a session store, but I can't find a way to access the mongo adapter to perform a query.</p>