问题描述:

网站发布到服务器  Session无法使用

Session默认保存形式是InProc  使用cookie标识 

解决方法

   <sessionState  
                        mode= "StateServer "                           <!--就是修改这里为“StateServer” -->
                        stateConnectionString= "tcpip=127.0.0.1:42424 "
                        sqlConnectionString= "data   source=127.0.0.1;Trusted_Connection=yes "
                        cookieless= "false "  
                        timeout= "30 "  
        />

 

找到ASP.NET   State   Service服务,将其启动。

 

posted on 2010-06-24 10:08  冷傲残痕  阅读(255)  评论(0编辑  收藏  举报