Warning: Page has Expired

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.
"""
 
B

bri

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?
 
K

Kevin Spencer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top