我在哪里可以找到<sessionstate>元素的默认设置?</sessionstate>

时间:2012-04-19 09:16:33

标签: asp.net iis

档案

  

C:\ Windows \ Microsoft.NET \框架\ V2.0.50727 \ CONFIG \ machine.config中

没有这个元素。哪些选项保留?

1 个答案:

答案 0 :(得分:3)

未在Machine.config文件或根Web.config文件中显式配置<sessionSate>的默认设置。默认值记录在MSDN中,我在下面引用它

<sessionState 
   mode="InProc" 
   stateConnectionString="tcpip=127.0.0.1:42424" 
   stateNetworkTimeout="10" 
   sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI" 
   sqlCommandTimeout="30" 
   customProvider="" 
   cookieless="UseCookies" 
   cookieName="ASP.NET_SessionId" 
   timeout="20" 
   allowCustomSqlDatabase="false" 
   regenerateExpiredSessionId="true" 
   partitionResolverType="" 
   useHostingIdentity="true">
   <providers>
      <clear />
   </providers>
</sessionState>