Topic
No replies
SystemAdmin
SystemAdmin
30899 Posts
ACCEPTED ANSWER

Pinned topic Implicit Logout filter not called always after a session time out

‏2013-01-23T14:51:25Z |
I have a requirement of showing a client specific session time out page instead of normal Portal session time out page and depends on virtual portal it should navigate to two different error page. Implicit logout filter is implemented for this case as HTTP Servlet Request is available to redirect to specific pages. But this filter is not getting called always and not able to find out which scenario this is getting called and not getting called. Can any one faced any situation like this. Last 1 week I am sitting on top of this but no luck. Any help is appreciated.

public void logout(HttpServletRequest request, HttpServletResponse response,
FilterChainContext filterChainContext, LogoutFilterChain logoutFilterChain)
throws LogoutException, LoginException {
String url = request.getRequestURL().toString();
logoutFilterChain.logout(request, response, filterChainContext);
if(sessionFilterProperties.getProperty("ABC").equalsIgnoreCase(virtualPortalName))
{
filterChainContext.setRedirectURL(URL1);
}
else if(sessionFilterProperties.getProperty("EFG").equalsIgnoreCase(virtualPortalName))
{

filterChainContext.setRedirectURL(URL2);

}
}
Thanks