dotnet使用sqlserver作为session server

cd C:\Windows\Microsoft.NET\Framework\v4.0.30319

aspnet_regsql.exe -S developserver-U sa -P 1234 -ssadd -d aspnet_state -sstype c

 

<system.web>
<sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="data source=developserver;database=aspnet_state ;uid=sa;pwd=1234" timeout="36000" />

 

https://www.cnblogs.com/fishaxyz/archive/2008/01/03/1024164.html

 

posted @ 2022-12-08 11:52  Ender.Lu  阅读(32)  评论(0编辑  收藏  举报