开发者

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!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜