Question : asp.net remove item from cache if browser is closed

I am setting something up in cache and want to ensure it is removed if a user does not log out but closes the browser window.

How can I ensure that
Cach.Remove("someKey");  

Is removed from the cach if the browser window is closed.

Answer : asp.net remove item from cache if browser is closed

Sounds like a fun project. I did a booking system last year for travelling beauticians and my input would be reference everything as slots, don't go down the complex route of dealing with times. 9am can be slot 1, 9.30am slot 2 and so forth til end of day. It makes life WAY easier and SQL statements are a breeze.

Good luck with it :-)

/ Tobzzz
Random Solutions  
 
programming4us programming4us