Featurely

.NET

 

.net2.0 Seesion丢失的问题


修改web.config:  
          <sessionState    
                          mode="StateServer"  
                          stateConnectionString="tcpip=127.0.0.1:42424"  
                          sqlConnectionString="data   source=127.0.0.1;Trusted_Connection=yes"  
                          cookieless="false"    
                          timeout="140000"    
          />  
   
  注意: mode="StateServer"这种模式下即使修改页面也不会丢失session!   
       mode="InProc"如果你的模式为这种,修改页面的时候会丢失session!

posted on 2006-09-12 14:48  Featurely  阅读(315)  评论(0编辑  收藏  举报

导航