I have written an interceptor according to what I found in another thread opn this forum to catch session timeouts.
this interceptor gets called, but the session is never null.Code:public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { HttpSession session = request.getSession(); session. if (session == null) { request.setAttribute("timeout", "Your session has timed out. " + "Please log in again if you want to continue to use FI-RACE."); response.sendRedirect("/login.jsp"); return false; } return super.preHandle(request, response, handler); }
Does anyone have any suggestions as to what I need to check to know that the session has timed put?


Reply With Quote
