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
Post a Comment