wood burning stoves
The moose likes JSP and the fly likes Warning: Page has Expired Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Warning: Page has Expired" Watch "Warning: Page has Expired" New topic

Warning: Page has Expired


Joined: Feb 01, 2002
Posts: 11
When I press the "back" of the IE button in my application i get this error message:
Warning: Page has Expired
The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
To resubmit your information and view this Web page, click the Refresh button.
What is the reason for that and how can i avoid that?
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!

Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
The most likely reason for that is that the page you are trying to go back to was created by or was the action of a 'post' request.
The browser doesn't save these pages like it does those generated by the 'get' method so you can only go back to them for a certain amount of time before you will need to resubmit the data to see the page again.
What if it was an order confirmation page, you wouldn't want to have anyone be able to click the back button on your browser a few times to get all of your credit card info.
to avoid this in that page you would need to make the page the action of a form whose method was 'get' instead of 'post'.
hope that helps
I agree. Here's the link: http://aspose.com/file-tools
subject: Warning: Page has Expired
It's not a secret anymore!