简体   繁体   中英

Increase session timeout in asp.net 2.0 on IIS 6.1 with windows 2008 R2 Datacenter

I stuck in increasing timeout for websites in asp.net 2.0 on IIS 6.1 with windows 2008 R2 Datacenter.

thx for help in advance...

If your using the sessionState property of ASP.NET 2.0 Then you can adjust the timeout in your web.config

<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"  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< HERE
allowCustomSqlDatabase="false" 
regenerateExpiredSessionId="true" 
partitionResolverType="" 
useHostingIdentity="true">
<providers>
  <clear />
</providers>
 </sessionState>

Have a peek at the MSDN Documentation of the sessionState attribute

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM