title: How to manually log out a user with spring security?
body: <p>Probably the answer is simple: How can I manually logout the currently logged in user in spring security?
  Is it sufficient to call:</p>
  
  <pre><code>SecurityContextHolder.getContext().getAuthentication().setAuthenticated(false); 
  </code></pre>
  
  <p>?</p>