Home » Applications » Increase session timeout

Increase session timeout

Increase session timeout

web.config

<configuration>
    <system.web>
        <sessionState timeout="240"/>
        <!-- increases session timeout from 20 minutes
             to 240 minutes, or 4 hours
         -->
    </system.web>
</configuration>

However, when increasing the user session timeout keep in mind the following:

"The default is 10 minutes. Session.Timeout has no hard-coded limit. Most
Web administrators set this property to 8 minutes. It should not be set
higher than 20 minutes (except in special cases) because every open session
is holding onto memory. It should also not be set lower than 4 minutes
because clients rarely respond within that time resulting in a loss of session state." Surce Microsoft MSDN