I am writing a user tracking function that I'm calling from protected Session_End event in the global.asax file. This function looks like this:
Code:
protected void Session_End(Object sender, EventArgs e)
{
if(Session["ID"] != null)
member.endSession(Int32.Parse(Session["ID"].ToString()));
}
The endSession function make a DB call that sets a flag in a table. This ends up ending some logged in users sessions, but not all. And the timing is incosistent. Is there a better way to do this? When is this event fired?
Thanks,
-- shawn