烦燥中…………

解决方案 »

  1.   

    不能不用session吗?或者用静态属性保存。
      

  2.   

    在Global.asax里面的
    protected void Application_Start(Object sender, EventArgs e)
    {
    Application["count"]=0;

    }
     
    protected void Session_Start(Object sender, EventArgs e)
    {
    Application.Lock();
    Application["count"]=(int)Application["count"]+1;
    Application.UnLock();
    }
    protected void Session_End(Object sender, EventArgs e)
    {
    Application["count"]=(int)Application["count"]-1;
    }
      

  3.   

    按照chaoren1641(超人) 说的方法做..就OK了.
      

  4.   

    在Global.asax里面的
    protected void Application_Start(Object sender, EventArgs e)
    {
    Application["count"]=0;}
     
    protected void Session_Start(Object sender, EventArgs e)
    {
    Application.Lock();
    Application["count"]=(int)Application["count"]+1;
    Application.UnLock();
    }
    protected void Session_End(Object sender, EventArgs e)
    {
    Application["count"]=(int)Application["count"]-1;
    }
      

  5.   

    一个人登录时会显示是4
    过一段时间(大概是SESSION超时了)就显示为1了
      

  6.   

    应该不是Global.asax里的问题...
      

  7.   

    没用,主要是 Session_End 事件不会触发。MS的BUG`
      

  8.   

    TO:没用,主要是 Session_End 事件不会触发。MS的BUG`不是吧,那怎么我以前用就能用呢?
      

  9.   

    记录在线认输有点不准 那是应该的吧。。session过期就对了