GeeCON Prague 2014*
The moose likes JSP and the fly likes jsp logout problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "jsp logout problem" Watch "jsp logout problem" New topic
Author

jsp logout problem

Pravin Shirke
Ranch Hand

Joined: Apr 05, 2008
Posts: 150

hi all,
when i click on my logout link on my home page i call a logout.jsp page
<a href="<%=request.getContextPath()%>"+"/logout.jsp>" using this tag but when i click on the browser back button it takes me back to the previous which is not valid in my logout.jsp i remove the attributes and invalidated the session then to its not working. any ideas,hints all welcomed. thank you


[Vipassana] - It is seeing the reality as it is, And not as you want it to be.!!!
SCJP1.5.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Yes,
In our JSP faq are two entries that, together, will help with this problem.
One shows how to use the Post-Redirect-Get pattern to eliminate showing pages as a result of a request of type POST. The other shows how to suggest that the browser not cache your pages.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Pravin Shirke
Ranch Hand

Joined: Apr 05, 2008
Posts: 150

Thank you Ben,
But can you please give me an example.
 
GeeCON Prague 2014
 
subject: jsp logout problem