Hello! 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? Thanks! VJ
vijayr 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!!
Joined: May 10, 2001
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