I have problems with Session Time-out

Nov 15 2006 5:21 AM
Hi,
 
I have problems with Session Time-out.
 
I need my Session to stay for more than an hour. For that, I have done the below things.
 
a) I have specified the timeout as 60 in the web.config of my application as below:
    <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="60" />
 
b) In IIS, web-site's configuration settings also I have changed to 60 minutes.
 
c) Though its not required, I have also changed the timeout to 60 in machine.config as below:
 
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" stateNetworkTimeout="10" sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI" cookieless="false" timeout="60"/>
 
Even though some times the session time-out is after 25 – 30 minutes and sometimes the session time-out was after more than 54 minutes.
 
Can any one give me any explanation for this unpredictable behaviour?
 
How to re-solve this type of situation. I dont want to change the sessionstate's mode other than In-proc.
 
Please help me in this regard.

Answers (2)