【发布时间】:2012-03-26 16:52:39
【问题描述】:
每当我更新项目中的文件并且我在网站上时,我都会失去身份验证。会话正在改变,或者我不知道会发生什么。 我应该做些什么改变?
这是 webconfig 的一部分
<system.web>
<sessionState cookieless="UseCookies" mode="InProc" sqlCommandTimeout="1200" sqlConnectionString="Data Source=WINDOWS2008\SQLEXPRESS;User ID=dotnet;Password=1234" timeout="20" />
<globalization culture="en-US" />
<httpRuntime minFreeThreads="18" minLocalRequestFreeThreads="18" executionTimeout="1000000" maxRequestLength="1024000" requestLengthDiskThreshold="1024000" />
<!-- <sessionState timeout="60" mode="InProc" />-->
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
【问题讨论】:
标签: asp.net iis web-config session-state