Related Posts Plugin for WordPress, Blogger...

About

Follow Us

Monday, 2 February 2015

Introduction:   By default session timeout is 20 minutes but sometimes it is required to increase or decrease the session timeout as per application requirement. It is possible by a simple setting in the web.config file.

let's say we have to  increase session timeout to 1 hour then make changes in the web.config files as:
open your web.config file and add

 <system.web>
<sessionState timeout="60"></sessionState>
</system.web>
OR
<system.web>
 <sessionState mode="InProc" cookieless="false" timeout="60" />
</system.web>

OR
<system.web>
<sessionState
    mode="InProc"
    stateConnectionString="tcpip=127.0.0.1:42424"
    stateNetworkTimeout="60"
    sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI"
    cookieless="false"
    timeout="60"/>

</system.web>

0 comments:

Post a Comment