If we want to store sessions in SQL Server, in which table are sessions stored?
To implement session state management in ASP.NET SQL Server mode, you must modify the item of your Web.config application file as follows:
1. Set the mode attribute of the element on SQLServer to indicate that session state is stored in SQL Server.
2.Set the sqlConnectionString attribute to specify the connection string for SQL Server. For instance:
sqlConnectionString="data source=MySQLServer;user id=<username>;password=<strongpassword>"
Note. The user must have permission to perform this operation in the database.
The modified item should look like this:
<sessionState mode="SQLServer" sqlConnectionString="data source=127.0.0.1;user id=<username>;password=<strongpassword>" cookieless="false" timeout="20" />
The question is that there is a specific session storage table?
Saving a session in SQL Server is an undefined concept.
Thanks.
user1108948
source share