Click here to Skip to main content
15,747,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
The session is getting timed out within 20 minutes even when the timeout period is set to 1440 minutes.
Posted
Updated 15-Nov-11 1:38am
v2
Comments
Prince Antony G 15-Nov-11 7:38am    
the same question which i asked...

SQL
Open the IIS, click on the Application Pools, Select the Application pool for your application.
Right Click --> Select Properties.



set the time value here whatever u want
 
Share this answer
 
a good article, hope it will help you..

Why Session.Timeout is not working for your website[^]


:)
 
Share this answer
 
XML
Use timeout in web.config, can also use timespan--20 minutes is default, also The timeout attribute cannot be set to a value that is greater than 525,601 minutes (1 year) for the in-process and state-server modes.

1.In Web Config File:
<system.web>
        <sessionState timeout="1440" />


<authentication mode="Forms">
            <forms loginUrl="Default.aspx" protection="All" timeout="1440" name=".ASPXAUTH" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="Home/Default.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false">
                </forms>
        </authentication>

        <httpRuntime maxRequestLength="2097151" executionTimeout="43200" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>

</system.web>

2.If you are using ASP.NET 2.0, use have to check in the IIS.
Open the IIS, click on the Application Pools, Select the Application pool for your application.
Right Click on that, Select Properties.
In the Performance tab, Set the idle timeout as your desired minutes for "shutdown worker processes after being idle for ..... minutes".
3.In IIS, Right click the web sites Select Properties.

In HomeDirectory tab ,Click the Configuration Select Options tab and

Set Session time out:1440

4.In IIS, Select the ASP.NET tab Click Edit Configuration

Select StateManagement tab and set Session timeout:1440 and
Session State Mode:InProc mode.

Finally  Restart the IIS.

Now check the Session Time out.

Regards

Prince Antony G
 
Share this answer
 
Comments
Prince Antony G 16-Nov-11 0:28am    
did u check it or not?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900