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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -