Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp page expires 1

Status
Not open for further replies.

inusrat

Programmer
Feb 28, 2004
308
CA
I have a website in asp. When I use nternt explorer either back button, or clik on the link to take me back to the previous page (history.go) , i get "page expired" message... I get this even if I do it right away..what can I do to fix it..I do not want page to expire that fast.....it happens only in IE not in netscape..

Thanks
 
Hey inusrat,

That message really is anoying... It is usually caused by IIS (4 and up I think) servers setting CacheControl to "private" by default. One way around it is to place the following line at the top of the page that has the problem.

<% Response.CacheControl="Public" %>

Microsoft also mentions that this will only happen when information has been Form Posted to a page. Not like we're all going to switch to Get just to make it go away but it's good to know the reasons why one page will and another wont.

-Have fun


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
thanks for your reply. yes I am using IIS 5.0. I put the code but it still did not work. Then I went to IE and deleted all the files. and Now I don't get message "page expired". I think my problem was related to some old file in the cache. Some time these old files and cookie can cause you quite an headche :)

Thanks
 
Yep,

That is the other cause that I have heard about. It's never happened to me but apparently it gets a bad record in the Cache index and it makes that happen.

I'm glad you found it.

Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
I had the same problem before. I changed method of the form to "get" instead of using "post". The expired page won't show anymore.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top