How to use sqlserver to store session state?

<sessionState mode="SQLServer"
  cookieless="true"
  regenerateExpiredSessionId="true"
  timeout="30"
  sqlConnectionString="Data Source=MICHAEL;Integrated Security=SSPI;"
  stateNetworkTimeout="30"/>

I wonder what I'm doing wrong.

+3
source share
1 answer

Did you run the aspnet_regsql tool to configure the SQL server?

command example:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe -S MICHAEL -E -ssadd -sstype t

+5
source

Source: https://habr.com/ru/post/1788246/


All Articles