title: How to fully logout? Spring Security
body: <p>How can I fully logout? I have in my xml file:</p>
  
  <pre><code>&lt;security:logout logout-url="/logoutMe" /&gt;
  </code></pre>
  
  <p>And when I enter the /logoutMe url I am not logged out - on my controller I added:</p>
  
  <pre><code>SecurityContextHolder.getContext().getAuthentication().getName()
  </code></pre>
  
  <p>And added the name to ModelAndView and display on my page, and there is still my username, not anonymousUser as before logging in.</p>
  
  <p>How to logout totally?
  I've also tried to create my own LogoutSuccessHandler implementation with:</p>
  
  <pre><code>SecurityContextHolder.clearContext();
  </code></pre>
  
  <p>but.. it doesnt seem to work</p>