i use the Global.asax in my asp.net application
void Session_Start(object sender, EventArgs e)
{
// Code that runs when a new session is started
Session.Abandon();
}


i need this
when the user close the browser or the browser shutdown for any reason
i need to delete his id from my database

i try to use the
void Application_End(object sender, EventArgs e)
or
void Session_End(object sender, EventArgs e)

but when the browser is closed these methods are not active

is there is a way
thx alot