|
-
December 13th, 2003, 04:54 AM
#1
Browser's caching
I made some private aspx web pages. These pages are accesible through a sophisticated login-logout system in order for me to know at any time who is online and other stuff.
Even when I am logging out this system and the user main pages normally are not supposed to be accessible anymore, the BACK/FORWARD buttons of IE can show up the private pages using its cache. By pressing REFRESH the system works ok and redirects the user to the login page again.
My questions are: How to disable the browser's caching option for a specific page, if we can do that (inside the application, not some option in each user's browser). Also, is it a good practice to disable this feature for private pages or not? By forcing the user to be always connected in order to have access, maybe is not a good idea cause these pages includes many text information and I dont know really if we must force a new connection to show already shown data.
- Better live in the digital world -
-
December 13th, 2003, 12:57 PM
#2
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetExpires(Now())
Good Luck,
Craig - CRG IT Solutions - Microsoft Gold Partner
-My posts after 08/2015 = .NET 4.x and Visual Studio 2015
-My posts after 11/2011 = .NET 4.x and Visual Studio 2012
-My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
-My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
-My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
-My posts before 04/2007 = .NET 1.1/2.0
*I do not follow all threads, so if you have a secondary question, message me.
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
|