using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.SessionState; namespace infoExpediters { public class Global : System.Web.HttpApplication { int count; protected void Application_Start(object sender, EventArgs e) { Application["countuser"] = 0; Application["Todaydate"] = DateTime.Now; } protected void Application_End(object sender, EventArgs e) { Application["countuser"] = 0; } protected void Session_Start(object sender, EventArgs e) { // Application.Lock; Application["countuser"] = int.Parse(Application["countuser"].ToString()) + 1; //Application.UnLock; } protected void Session_End(object sender, EventArgs e) { } } }