Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written code following bellow in web.config file
HTML
<system.web>
<sessionstate timeout="30000" />
</system.web>


But after one minute session i getting time out. i am getting worry, please some one help me and set my problem out

Thanks and Regards

Kailash Chandra Behera
Yesha IT Solutions Pvt. Ltd
Posted
Updated 23-Oct-11 21:17pm
v2
Comments
RaisKazi 24-Oct-11 3:18am    
Please use "<pre>" tag for code block and Tag your Question with appropriate Technology.

Start here[^].
 
Share this answer
 
Default SessionState mode of Asp.Net application is "inproc".

This mode of session state management is as same as Classic Asp State Management, where session state gets maintained in the running process on the same Web Server/Machine. Whenever this process gets recycled by IIS, your web application looses it's session state information/data.

Have a look at below link, for more information on this.
http://blogs.iis.net/webtopics/archive/2009/07/21/in-proc-session-state-management.aspx

For more information on "ASP.NET Session State" refer this.
http://msdn.microsoft.com/en-us/library/ms972429.aspx
 
Share this answer
 
By Default session time out is 20 minits and also cleare one thing in your mind that you can not set session time out more then one year means more then 525,600

For more detail of any thing about session timeout please read this on..

http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.timeout.aspx[^]

http://stackoverflow.com/questions/648992/session-timeout-in-asp-net[^]
 
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