简体   繁体   中英

Clear Server Cache on Browser Close Using ASP.NET

对于安全的Web应用程序,如何清除浏览器服务器缓存中的项目关闭。

You could try using the Session object and use it Session_End method to detect when the session is over and then do the cleanup.

More info about the session object you can find here - http://www.codeproject.com/KB/aspnet/ExploringSession.aspx

I'd use a small timeout so that the cache will clear almost immediately when the session is over. I might be wrong here - so if any one can help, it would be appreciated.

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM