Global.asxausing system; using system.collections; using system.bomponentmodel; using system.web.sessionState;
Namespace Elcare {///
Private system.componentmodel.icontainer component = NULL;
public Global () {InitializeComponent ();} protected void Application_Start (Object sender, EventArgs e) {Application [ "OL_UserCount"] = 0;} protected void Session_Start (Object sender, EventArgs e) {Application.Lock (); Application [ "OL_USERCOUNT"] = (int) Application ["ip_usercount"] 1; // Online User Application.Add (session.SessionId.toT7TRING (), 1); // Use sessionID as Application.Unlock (); }
Protected Void Application_BeginRequest (Object Sender, Eventargs E) {}
Protected void Application_endRequest (Object Sender, Eventargs E) {
}
Protected void Application_AuthenticateRequest (Object Sender, Eventargs E) {}
Protected void application_error (Object sender, Eventargs E) {
}
protected void Session_End (Object sender, EventArgs e) {Application.Lock (); Application.Remove (Session.SessionID.ToString ()); Application [ "OL_UserCount"] = (int) Application [ "OL_UserCount"] - 1; Application .Unlock ();
Protected Void Application_end (Object Sender, Eventargs E) {
} #Region ///