开发者

Clear Server Cache on Browser Close Using ASP.NET

开发者 https://www.devze.com 2023-04-12 23:03 出处:网络
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

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!

0

精彩评论

暂无评论...
验证码 换一张
取 消