Use SQLServer to store and get session

xiaoxiao2021-03-06  108

ASP.NET provides three ways to store session.

1 Inproc

2 STATE SERVER

3 SQL Server

The first is that we are often used, and second is to use a machine with State Server with its memory to store other machines, in fact, we can also store and get session in SQL Server. Is it the first time I heard.

The implementation process will be described below.

Find this file c: /winnt/microsoft.net/framework/v1.0.2914/ installsqlstate.sql this file, load SQL Server (don't tell me not)

2 Modify Web.config, the general image below 3 uses it. This is everyone. Ha ha

转载请注明原文地址:https://www.9cbs.com/read-101693.html

New Post(0)