Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
3.80/5 (3 votes)
See more:
XML
<system.web>
    <sessionState mode="InProc" cookieless="false" timeout="1440" />


As per above in web.config, the project works correctly in local host. In remote, the timeout is happening when 20 minutes is over. Why is this so? How could it be rectified at remote?
Posted

this is due to the default InProc timeout is 20min , it is set in IIS ,
go to ISS mngr > default site > select your site > select session time out Option and choose InProc,Serververstate ,Sqlserver Or custom and set the interval ,it automatically Update our time out section in WebConfig
 
Share this answer
 
After uploading the web.config file restart the IIS server for taking effect your web.config changes.Try that. :)

UPDATE

Log-in to your remote IIS server then Click Start, click Run type IISReset, and then click OK.
 
Share this answer
 
v2
Comments
S.Rajendran from Coimbatore 9-May-14 6:55am    
how to restart the IIS server
Sampath Lokuge 9-May-14 7:02am    
I have updated the answer.Please check that.
S.Rajendran from Coimbatore 9-May-14 7:02am    
I cant find IIS mangager in my administrative tools.
Sampath Lokuge 9-May-14 7:04am    
Which version of server are you using ? 2003/2008/2102 or what ?
S.Rajendran from Coimbatore 9-May-14 7:06am    
2008
See the link below:
session-timeout-problem
Why-Session-Timeout-is-not-working

Hope it helps :)
 
Share this answer
 

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