F
Franck
Hello,
I'm trying to count the number of current user that way
public class Global : System.Web.HttpApplication
{
public static int nbUsers;
protected void Application_Start(Object sender, EventArgs e)
{
nbUsers = 0;
}
protected void Session_Start(Object sender, EventArgs e)
{
nbUsers++ ;
}
protected void Session_End(Object sender, EventArgs e)
{
nbUsers-- ;
}
....
}
}
but i never pass through the Session_End event
even if I call
Session.Abandon();
Am i Missing anything?
I'm trying to count the number of current user that way
public class Global : System.Web.HttpApplication
{
public static int nbUsers;
protected void Application_Start(Object sender, EventArgs e)
{
nbUsers = 0;
}
protected void Session_Start(Object sender, EventArgs e)
{
nbUsers++ ;
}
protected void Session_End(Object sender, EventArgs e)
{
nbUsers-- ;
}
....
}
}
but i never pass through the Session_End event
even if I call
Session.Abandon();
Am i Missing anything?