Esempio n. 1
0
 protected void Session_Start(object sender, EventArgs e)
 {
     lock (_obj)
     {
         if (DateTime.Now.Day != LastCleanUp.Day)
         {
             LastCleanUp = DateTime.Now;
             TotayCount  = 0;
         }
         TotayCount++;
         TotalCount++;
         OnlineCount++;
         task.InsertIpStat(task.ReturnIpAdress(), task.GetCityName(task.ReturnIpAdress()), task.RuturnIpSrc());
         task.WriteFile(LogFile, TotalCount.ToString() + "," + TotayCount.ToString() + "," + LastCleanUp.ToString());
     }
 }
Esempio n. 2
0
 protected void Application_End(object sender, EventArgs e)
 {
     task.WriteFile(LogFile, TotalCount.ToString() + "," + TotayCount.ToString() + "," + LastCleanUp.ToString());
 }