在globla.asax里设置
protected void Application_Start(Object sender, EventArgs e)
{
Application["number"]=0;
}
protected void Session_Start(Object sender, EventArgs e)
{
Application.Lock();
Application["number"]=Application["number"]+1;
Application.UnLock();
}