DecoK
DecoK

Reputation: 145

webpage expired IE8

some of our clients are experiencing a "Web Page Expired" error in IE8 on our site. I've tried it myself in IE8 but am having no problems, and have heard it might be something to do with having "Do not save encrypted pages to disk" checked under Internet options. I enabled this on my browser and still could not replicate the problem.

The page in question has a form that gets auto submitted by javascript and then processed with PHP. It then redirects to another page after processing. Could something here be the root of the problem?

Thanks!

<script language="JavaScript" type="text/JavaScript">
function doSubmit()
{
this.document.autoForm.submit();
}
//-->
</script>
</head>

<body onLoad="window.setTimeout('doSubmit()', 1000)">
<form name="autoForm" method="POST" action="process.php">
<input type="hidden" name="handlerID" value="1">
</form>

Upvotes: 0

Views: 327

Answers (1)

Chris
Chris

Reputation: 3338

The "Web Page Expired" message usually occurs when you are trying to go back (via the browser's "Back" button) to a page to which you just POSTed data.

Basically, imagine if you were trying to create a new user. Your New User form takes the UserName, Password, and POSTs it to the Create a User page. This page then sends you to the Welcome to the Site page.

If you were to hit back, your browser would try to send you back to the Create a User page. But your browser recognizes that you just POSTed data here.

"Web Page Expired" is IE's way of asking a user if they would like to re-submit their form (and create a second user), or if they would rather reload the page without any POST variables.


How do you fix this?

If the data that you are sending is small (it looks like it is just a number in this case), then a possible workaround would be to pass this value to process.php with GET rather than POST. GET requests traditionally do not create or delete anything, so your browser is ok with sending you there a second time.

Upvotes: 1

Related Questions