Hi
I have an issue where i need to redirect a user to home page if user presses the back button at the last page. For this i am setting a session value in my
jsp at last page like <%session.putValue("page","last");%>.
And if user presses back button the session value is checked on the previous page. if value is found as "last", i have redirected the user to home page. This works fine in IE but not working in FF. I have even removed the cache via
<%
response.flushBuffer();
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setHeader("Cache-Control", " max-age=0, must-revalidate, no-cache, no-store, private");
response.setHeader("Pragma", "no-cache");
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
response.setDateHeader("Expires", 0);
response.setDateHeader("Expires", -1);
%>
But still its not clearing the cache in FF. upon calling refresh only the page is getting redirected.
Any help in getting the page redirected will be appreciated. Please note i dont want to use window.history.forward(1) in my code. And there is no login/logout functionality implemented.