|
-
May 4th, 2006, 12:32 PM
#1
remove cache of webpage
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.
-
May 4th, 2006, 01:22 PM
#2
Re: remove cache of webpage
I got the answer.
the following code snippet could added into Page_Init function of secured page:
Code:
Response.Cache.SetExpires(DateTime.Now)
Response.Cache.SetCacheability(HttpCacheability.NoCache)
.
-
May 5th, 2006, 03:25 PM
#3
Re: remove cache of webpage
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|