Click to See Complete Forum and Search --> : remove cache of webpage


jasonli
May 4th, 2006, 12:32 PM
I used Forms Authentication to control accessing webpage. However, when user logs out, user still can access the web page by clicking button "Back" on toolbar of IE.

How can I redirect to login webpage?

Thanks in advance.

jasonli
May 4th, 2006, 01:22 PM
I got the answer.

the following code snippet could added into Page_Init function of secured page:

Response.Cache.SetExpires(DateTime.Now)
Response.Cache.SetCacheability(HttpCacheability.NoCache)
.

jasonli
May 5th, 2006, 03:25 PM
I have one more secured webpage. When I go back from second page to first page while user still logged on, it doesn't work. How can I fix it?

thx in advance.