Friday, March 16, 2012

on closing he browser

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 alotthere is one unreliable way but the fact that you need to is almost always a sign of poor design.
Not good. I know how to do it with javascript but I don't know if your browser can support that. You keep mentioning all these limitations.
ya mendhak
i will do it and when i finsih i will post the answer
thx alot

0 comments:

Post a Comment