• Post Reply Bookmark Topic Watch Topic
  • New Topic

Page not getting Expired after click of back button

 
Manohar Manjunath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using the cache-control method to use page expiration utility in my JSP.
Its working fine with IE. But, I'm not able to achieve this with Mozilla Firefox.
I'm setting all the cache-control related attributes to achieve this in my JSP -
Also,

I've used following piece of code as well:
function noBack(){window.history.forward()}
noBack();
window.onload=noBack;
window.onpageshow=function(evt){if(evt.persisted)noBack()}
window.onunload=function(){void(0)}

But, still, page is not getting expired in Mozilla.
Can any one of you suggest me any other work around?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to javaranch . Coming to your question,why you prevent the user from back button ?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
 
Manohar Manjunath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for welcoming.
There are few confidential informations maintained in the page and thats the reason we donot want this to happen.
Can you suggest a work around for this?
I read the link related to mozilla HTTP cache.
But, still, we donot want this to happen.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!