I tried exactly what the article said but it still does not work. It
looks like it should work. Should this page be inside of a frames page
in order to work?
The way I set up the test is that I have a page called 00.asp which has
a link to 01.asp (displayed below). 01.asp gets some records back from
the DB and outputs it. Then it displays a link to 02.asp. I follow the
link to 02.asp. Once on 02.asp I click on the back button in IE 6 and I
still get the full/cached 01.asp page and not the "Page has expired"
message. What am I doing wrong?
I did what the article said which is to use iisreset on the server and
cleared out my browser. It still does not work. Any ideas?
===============
Code: 01.asp
===============
option explicit
Response.Expire sAbsolute = #2000-01-01#
Response.AddHea der "pragma", "no-cache"
Response.AddHea der "cache-control", "private, no-cache, must-revalidate"
dim oConn, oRS, sql
set oConn = server.createob ject("adodb.con nection")
oConn.open "Provider=sqlol edb; Data Source=dev; Initial
Catalog=pubs;Us er Id=sa;Password= dewey;"
Set oRS = Server.CreateOb ject("ADODB.Rec ordset")
sql = "select * from authors"
oRS.Open sql, oConn, adOpenForwardOn ly, adLockPessimist ic, adCmdText
if not oRS.EOF then
do while not oRS.EOF
response.write( oRS("au_Id") & "<br>")
oRS.MoveNext
loop
end if
oRS.close
Set oRS = nothing
oConn.close
set oConn = nothing
response.write( "<br><br><a href='02.asp'>t o page 2</a>")
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!