title: Can I expire all sessions of a user?
body: <p>Can I expire all sessions of a user?<br>
  I know that I can expire a <code>session</code> by using <code>session.invalidate()</code>.</p>
  
  <p>I am using Tomcat, servlet/JSP.</p>
  
  <p>In a session I have a attribute <code>userId</code>.</p>
  
  <p>On that basis we define that this <code>session</code> belongs to a particular user.</p>
  
  <p>I have a need in which I have to invalidate all sessions containing a particular userId. </p>