Vikas Kunte
Vikas Kunte

Reputation: 731

Clear Server Cache on Browser Close Using ASP.NET

for a secure web application , How to clear an item in server Cache on Browser close.

Upvotes: 0

Views: 1915

Answers (1)

Roman
Roman

Reputation: 4513

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!

Upvotes: 1

Related Questions