时间:2021-07-01 10:21:17 帮助过:19人阅读
因为公司有多台服务器,所以session要保存在sql server上,因此要在数据库中建立存放session的数据库ASPState,
转自:http://www.cnblogs.com/zxktxj/archive/2012/09/20/2695827.html
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5" requestValidationMode="2.0" maxRequestLength="102400"/>
<!--<compilation debug="true" targetFramework="4.0" />-->
<!--<httpRuntime requestValidationMode="2.0" maxRequestLength="102400" />-->
<pages validateRequest="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="zh-CN"/>
<!--<pages validateRequest="false" />-->
<sessionState mode="SQLServer" sqlConnectionString="data source=***.***.**.***;user id=**;password=*****" cookieless="false" timeout="240"></sessionState>
</system.web>
使用aspnet_regsql.exe 创建ASPState数据库,用来保存session会话
标签:sql clear .com image 创建 class system nstat framework