title: spring security, how to expire all sessions of a user
body: <p>I have to solve the following scenario, in a Spring Security <code>3.2.5-RELEASE</code> with <code>Spring Core 4.1.2-RELEASE</code> application running Java 1.7 on wildfly 8.1. </p>
  
  <ol>
  <li>user 'bob' logs in </li>
  <li>and Admin deletes 'bob' </li>
  <li>if 'bob' logs out, he can't log in. again but he`s current session remains active. </li>
  <li><p>i want to kick 'bob' out </p>
  
  <pre><code>//this doesn't work
  for (final SessionInformation session :    sessionRegistry.getAllSessions(user, true)) {
           session.expireNow();
  }
  </code></pre></li>
  </ol>