This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic