Rahul Ba wrote:
Yes, Naveen I did the same thing, but again the same thing. It did not work. It's like browser keeps the page in session and that is shown to us.
Please let me know your opinion.
Rahul
Rahul Ba wrote:
I am forwarding to log out page by using following line
<a class="topNav" href="<%=request.getContextPath()%>/logout.html">Logout
Already, I do have following code in all jsp. but still when do browser back it shows me cached page.
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "must-revalidate");
Thanks once again
Rahul
parampreet sethi wrote:You can try putting return after each forward and response.sendredirect method calls.
The forward and sendredirect method calls does not mean that the rest of the code will be ignored. Yesterday I was having the same issue and putting return after each sendRedirect and forward fixed this issue.
Hope it helps.