How to configure SQL Server to manage ASP.NET sessions
问题 I need to know how to configure the .config to manage Session state in SQL Server 回答1: First you need to create a Session database. In order to do this: Look for the aspnet_regsql.exe Run this command aspnet_regsql.exe -S [ServerName] -E -ssadd -sstype p Where ServerName is your server name. This will create this database ASPState Now the configuration on the web.config Add this sentence over <sessionState allowCustomSqlDatabase="false" mode="SQLServer" sqlCommandTimeout="7200"