How to make SQLServer session mode work ?

Please do below steps to make SQLServer session mode to work properly :

1. To use SQLServer mode, you must first be sure the ASP.NET session state database is installed on SQL Server. You can install the ASP.NET session state database using the Aspnet_regsql.exe tool.

2. To configure an ASP.NET application to use SQLServer mode, do the following in the application's Web.config file:


•Set the mode attribute of the sessionState element to SQLServer.
•Set the sqlConnectionString attribute to a connection string for your SQL Server database.

No comments:

Popular Posts