spring - Logout listener getting user details -


i have logoutlistener implements httpsessionlistener , in sessiondestroyed method want clear logged in users access context. in method have been unable logged in users details remove this. on how brilliant. thanks.

public class logoutlistener implements httpsessionlistener {  . . . public void sessiondestroyed(httpsessionevent event) { 

i tried using following authentication returning null:

authentication auth = securitycontextholder.getcontext().getauthentication(); 


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -