1 cmd: 2 3 aspnet_regsql.exe -ssadd -sstype c -d ZZCasSession -S 192.168.0.3 -U sa -P szhweb2010 4 5 6 7 8 <!--会话配置--> 9 <!--<sessionState mode="StateServer" cookieless="UseCookies" timeout="36000"></sessionState> 10 <sessionState mode="InProc" stateConnectionString="tcpip=192.168.0.106:42424" cookieless="UseCookies" timeout="36000"></sessionState>--> 11 <sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="UseCookies" timeout="36000"></sessionState> 12 <!--<sessionState mode="StateServer" stateConnectionString="tcpip=192.168.0.106:42424" cookieless="UseCookies" timeout="36000"></sessionState>--> 13 <!--<sessionState mode="SQLServer" 14 allowCustomSqlDatabase="true" 15 sqlConnectionString="data source=192.168.0.3;initial catalog=ZZCasSession;user id=sa;password=szhweb2010" 16 cookieless="false" 17 timeout="36000"></sessionState>-->