Click to See Complete Forum and Search --> : Back Button Blues


gkirk
12-07-2004, 07:47 AM
Hi all,

I am running a site which requires users to log in to access certain sections of the site. Now my problem is with the log out I am using which when clicked abandons a session I set up and takes users back to the home page. This works fine apart from when clicking the back button which takes users back to a restricted page rather than redirecting to the log in page.

Any help much appreciated.

Greg

candelbc
12-07-2004, 10:38 AM
Try adding this to your pages to make sure it always expires.

<%
Response.Expires = -1
%>

-Brad

lmf232s
12-07-2004, 12:24 PM
Response.Expires = 0
Response.Expiresabsolute = Now - 1000
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"