hey guyz..i m devloping an application in asp.net and i have taken sessions to keep track of how many user are online...so in session_start i am increasing the value of Application variable by one now when user logges out i have called session_end by abendoning the session but what if some one closes browser directly..how to catch that event.when some 1 clicks 'X' button of browser..coz i wanna close the session in that event..help me