Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to prevent caching of jsp pages?

 
Rekha Pai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have referrred jsp faq and included
<meta http-equiv="Pragma" CONTENT="no-cache">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Expires" CONTENT="0">
in my files.
I have invalidated the session in my logout.jsp file and forwarded
login.jsp. Still using browser's back button I can go back to the pages
which I should not.
Can anybody help me in this regard?
Regards,
Rekha
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi , you need go through PRG Pattern
 
Rekha Pai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Seetharaman,
I can not get, what you are saying. Can you please
explain me in detail?
Thanks,
Rekha
 
Kanchan Singh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

You can try using filters that should solve your problem.
check for session id in filter if it exists or not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic