File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp logout problem" Watch "jsp logout problem" New topic

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.!!!
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

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.
I agree. Here's the link:
subject: jsp logout problem
jQuery in Action, 3rd edition