2

文件

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config

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

4

1 回答 1

3

的默认设置<sessionSate>未在 Machine.config 文件或根 Web.config 文件中显式配置。默认值记录在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>
于 2012-04-19T09:22:09.287 回答