Hi,
I have a file named index2.jsp given below:
The sessionManagement.jsp file is as given below:
Problem:
Prior to hitting the index2.jsp page I have created a session in a
servlet and set the MaxInterval value to 15(seconds) using the inbuilt setMaxInterval... function. Thereafter I use a sendRedirect to get to index.jsp page.
The index.jsp that contains a link pointing to index2.jsp. When I click it after 15seconds my response.sendRedirect("/sessionExpired.jsp") doesn't go to sessionExpired.jsp but prints only OSR(content of index2.jsp) on the index2.jsp page.
I don't want it to go to index2.jsp page if the session becomes invalid. I want it to redirect to sessionExpired.jsp instead. How should I do this?