for a secure web application , How to clear an item in server Cache on Browser close.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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!