Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp logout problem

 
Pravin Shirke
Ranch Hand
Posts: 152
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pravin Shirke
Ranch Hand
Posts: 152
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ben,
But can you please give me an example.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!