I am using iis6 to deploy my application. No matter how i change the timeout in iis configuration or i add a global.asax file to set Session.Timeout, or even used a sessionstate, im still getting session timeout after 20minutes, this is crazy! anyone please help me? i am so stuck..
web.config:
<authentication mode="Forms">
<forms name="__authcookie" loginUrl="LoginPage.aspx" timeout="60" protection="All" requireSSL="false" slidingExpiration="true" cookieless="UseDeviceProfile" enableCrossAppRedirects="false"/>
</authentication>
<sessionState mode="InProc" timeout="60" customProvider="AppFabricCacheSessionStoreProvider"></sessionState>
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear />
<add name="AppFabricCacheSessionStoreProvider" type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider" cacheName="NamedCache1" sharedId="SharedApp"/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
</providers>
</profile>
Include this in you web.config file:
using web.config
Using IIS
Change the following time-outs in Internet Services Manager .Choose a value greater than the default of 20.
Select Default Web Site > Properties > Home Directory > Application Settings > Configuration > Options.
Enable the session state time-out and set the Session timeout for 60 minutes.
Select Application Pools > DefaultAppPool > Properties.
From the Performance tab under Idle timeout, set Shutdown worker processes after being idle for a value higher than 20.
The default session time-out setting on IIS is 20 minutes but it can be increased to a maximum of 24 hours or 1440 minutes.