File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How to prevent caching of jsp pages? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to prevent caching of jsp pages?" Watch "How to prevent caching of jsp pages?" New topic
Author

How to prevent caching of jsp pages?

Rekha Pai
Ranch Hand

Joined: Oct 30, 2008
Posts: 35
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

Joined: Jan 28, 2008
Posts: 5575

hi , you need go through PRG Pattern
Rekha Pai
Ranch Hand

Joined: Oct 30, 2008
Posts: 35
Hi Seetharaman,
I can not get, what you are saying. Can you please
explain me in detail?
Thanks,
Rekha
Kanchan Singh
Ranch Hand

Joined: Dec 27, 2007
Posts: 38
Hi

You can try using filters that should solve your problem.
check for session id in filter if it exists or not.
 
Don't get me started about those stupid light bulbs.
 
subject: How to prevent caching of jsp pages?
 
Similar Threads
Caching is not working
Log out Functionality for my Web Application
no cache for images
making pages sensetive in struts
how to prevent caching in IE 6