title: Pulling the userDetails in custom LogoutHandler Spring MVC
body: <p>In MyLogoutHandler class I do override determineTargetUrl() method, here I am calling <code>MyUserDetials userDetails = (MyUserDetials)userContextManager.getUserDetails()</code>, but userDetails is null. </p>
  
  <p>here is the configuration:</p>
  
  <pre><code>&lt;security:logout  
  invalidate-session="true"
  success-handler-ref="MyLogoutHandler"
  logout-url="/auth/logout"/&gt;
  </code></pre>
  
  <p>I noticed that since invalidate-session="true", it is null? but I like to keep this attribute "true", Can I have any other way to do configure?</p>
  
  <p>My goal is: I need to pull some information from userDetails, to make a webservice call after user clicks logout. </p>
  
  <p>Thank you.</p>