@Override
protected void doFilterHttp(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
throws IOException, ServletException {
HttpSession session = request.getSession(false);
SessionStatus info = null;
if (session != null && shouldCare(request)) {
info = sessionRegistry.getSessionStatus(session.getId());
// Expired - abort processing
if (null != info) {
if (info.isExpired()) {
doLogout(request, response);
sessionRegistry.remove(session.getId());
String targetUrl = determineExpiredUrl(request, info);
if (targetUrl != null) {
RedirectUtils.sendRedirect(request, response, targetUrl);