title: How do I logout from Java EE container managed security?
body: <p>I am working in websphere 7.0.  I use the security from the application server.  I would like to removing the association with the user, so user is redirected to the login page before accessing a secure resource (and request.getUserPrincipal() returns null).</p>
  
  <p>I try : </p>
  
  <p>request.getSession().invalidate();</p>
  
  <p>but the  user principal is still associated.</p>
  
  <p>How could I remove that association?</p>