1. testing to see if a session has expired coderanch.comSomebody asked this just the other day. A client can't tell is a session is expired. Here's why: HTTP does not support unsolicted client responses. An HTTP client only gets a response when a request has been made. An HTTP request automatically resets the session timeout. So whenever you make any sort of HTTP request -- including a timeout test -- ... |
2. Session expire is handled but no new view is created coderanch.com |
3. Session Expire due to time out: Please Help coderanch.comHi All, I have some sort of same query. I have following code in my custom SessionListener sessionDestriyed() method. HttpServletRequest req = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest(); HttpServletResponse res =(HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse(); try { req.getRequestDispatcher("logout.jsp?timedOut=out").forward(req,res); } catch (ServletException e2) { e2.printStackTrace(); } catch (IOException e2) { e2.printStackTrace(); } But I am getting "NullPointerException" at the time of creating the HTTPRequest object. Actually I want to show a ... |
4. view session Expired coderanch.com |