Warning: Page has Expired

  • Thread starter Thread starter bri
  • Start date Start date
B

bri

Hi,

I have built an asp.net web app on an intranet, some users
are receiving the error below when they navigate back to a
search form.

The search form postbacks to itself and displays the
search results, which you can click on and are sent to a
new page through a GET. Some users get the error when
they click back and some don't.

Any help would be appreciated and more details can be
provided if needed. Thanks.

"""
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.
"""
 
nevermind, this problem was fixed by deleting the user's
temporary internet files. i would be interested in
knowing why exactly that fixes this though. does ie get
confused when there are too many cached files to go
through?
 
This message appears whenever a user browses back to a page which was
generated as the result of a form post, in this case, due to a PostBack of a
WebForm. This is standard browser behavior, and you can't change it.
Instead, you have to deal with it. There are several things you can do. One
is to cache the search results, say, in Session, then do a
Response.Redirect, passing a QueryString to the new page instance that tells
it to fetch the search results from the cache and display them. This results
in a GET request from the browser for the page, rather than a POST.

--
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top