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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pages are no longer expiring

Status
Not open for further replies.

crystalized

Programmer
Jul 10, 2000
390
CA
I know this question is on here all the time but....

I thought I had this problem solved, my pages were expiring so when I hit the back button the "Page has expired" error page was being displayed. This was a good thing since I need the users to navigate through a series of forms using the navigation buttons I have provided. If the user uses the browser navigation buttons the things I need done do not get done.

Now I was getting ready to change the way the error of an expired page is handled (I am still not sure exactly how to do this but I was about to embark on the learning process) when the pages stopped expiring. Now I am able to flip back and forth between accessed forms with the browser buttons and I am not getting the page has expired error any more.

The only real change I made is that I had my series of Expire statements as follows:

Response.CacheControl = "no-cache"
Response.AddHeader "Pragma","no-cache"
Response.ExpiresAbsolute = Now()- 1000
Response.Expires = 0

in an include file, and then I moved it into a different include file. The second include file is included in all of the forms (that was the first thing I checked).

So I am unsure how I am suddenly going wrong here. The strange thing is that it was working and now it is not working, yet I can think of no other significant changes I have made to the "expires" end of things.

I also have Response.buffer=true at the top of each of the form pages.

The users of the application will be expected to use Internet Explorer, not Netscape.

Any words of wisdom would be greatly appreciated.
 
i read that you should try to use response.expires=-1500. you can't rely on =0. -1500 means 25 hours ago.
 
Thanks a bunch I will give it a try. s-)

The odd thing is that today some of my pages are expiring and some are not so I think I will also go over them with a fine tooth comb and try to find out where the difference is (if there is one)and change the ones that aren't working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top