I've been configured a handler for logout
In method onLogoutSuccess of my handler class "CustomLogoutSuccessHandler" I've followingCode:<logout delete-cookies="true" invalidate-session="true" success-handler-ref="customLogoutSuccessHandler"/>
I used the authentication object, but when session expired this object is null, so that I can't use itCode:@Override public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException{ // TODO Auto-generated method stub System.out.println("logout"); //code }.
In logout I need the user stored within the authentication object. When the session expired, How do I get it?


.
Reply With Quote