Home  >  Article  >  Database  >  <sessionState mode="SQLServer" &

<sessionState mode="SQLServer" &

WBOY
WBOYOriginal
2016-06-07 15:39:401037browse

mode属性就是设置将Session信息存储到哪里 , 1.Off 设置为不使用Session功能 2.InProc 设置为将Session存储在进程内,就是ASP中的存储方式,这是默认值。 3.StateServer 设置为将Session存储在独立的状态服务中。 4.SQLServer 设置将Session存储在SQL Serve

mode 属性就是设置将Session信息存储到哪里 ,
1.Off
设置为不使用Session功能
2.InProc
设置为将Session存储在进程内,就是ASP中的存储方式,这是默认值。
3.StateServer
设置为将Session存储在独立的状态服务中。
4.SQLServer
设置将Session存储在SQL Server中。
你设置的是mode="SQLServer",只要存在Session,肯定会被保存在SQL数据库中了

SQL Server我也没怎么用过,这个最好不要使用,占用数据内存,可以使用StateServer

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn