Clear Server Cache on Browser Close Using ASP.NET
for a secure 开发者_Python百科web application , How to clear an item in server Cache on Browser close.
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!
精彩评论