Session_End只有在session server mode=Inproc时,才会触发。Once Abandon is called, the current session is no longer valid and a new session can be started. Abandon causes the End event to be raised (a new Start event is raised on the next request). The End event is supported only when Mode is InProc.

解决方案 »

  1.   

    关注:Session.Abandon()调用后会不会清除当前Session里的值?
      

  2.   

    我的web.config
        <sessionState 
                mode="InProc"
                stateConnectionString="tcpip=127.0.0.1:42424"
                sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
                cookieless="false" 
                timeout="20" 
        />
      

  3.   

    先Session.Clear();后Session.Abandon()
      

  4.   

    Session.Clear();清除session中的直