Possible Duplicate:
Is there any way to know that user leaving a page with asp.net?
How can I perform automatic logout or closing the session when leaving my web application?
(like GMAIL, when you doesn't check "remember me", that logs you off if you close the browser or move to other page).
Thanks, Inbal.
you can use 'onbeforeunload' event and open a pop up to kill the session using Session.Abandon
or if you are using forms authentication you have an option to kill session after certain time using timeout