T
teo
I have an object stored in the Page.Cache.
(its name is the SessionId number).
I'd like to remove it from the Cache when the user close
or abandons 'mySite.aspx' page
(when he closes the browser, when he jumps to another site,
if the connection is broken, if an Error occur and the user is
istantly redirected to another page ...)
How to detected all this circumstances?
I used the Unload and then the Dispose events of the Page object,
but the first is continuosly fired (at every postback)
and the second is never fired,
so they seem to be both unuseful.
(its name is the SessionId number).
I'd like to remove it from the Cache when the user close
or abandons 'mySite.aspx' page
(when he closes the browser, when he jumps to another site,
if the connection is broken, if an Error occur and the user is
istantly redirected to another page ...)
How to detected all this circumstances?
I used the Unload and then the Dispose events of the Page object,
but the first is continuosly fired (at every postback)
and the second is never fired,
so they seem to be both unuseful.