Click here to Skip to main content
15,914,255 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
In my application maintain sessions
In web.config my code like this
HTML
<sessionstate mode="InProc" cookieless="false" timeout="60" />

and
i checking everpageload.
actually session expire after 1 hour(60Mintues)
but my application taking default session timeout=20.
why like this
i don't know were i wrong.
help me out,
any help appriciate.
Thank U.
Posted
Updated 27-Nov-11 20:39pm
v2
Comments
RaisKazi 28-Nov-11 2:32am    
Session is expiring after 60 minutes / 20 minutes?
Bojjaiah 28-Nov-11 3:38am    
20 minutes
RaisKazi 28-Nov-11 3:40am    
Please refer to my Answer below.
[no name] 28-Nov-11 2:55am    
isn't that seconds?
Bojjaiah 28-Nov-11 3:38am    
s

You are using "InProc" mode of Asp.Net Session Management.

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

Below CodeProject article has a work-around for this problem.
Prevent Session Timeout in ASP.NET
 
Share this answer
 
Comments
koolprasad2003 28-Nov-11 2:55am    
5 for effort. Nice explanation.
RaisKazi 28-Nov-11 2:58am    
Thank you Prasad.
 
Share this answer
 
Hi Bojjaiah,
Session Timeout Issue[^]
 
Share this answer
 
go through below url and download ASPNET_jQueryUI_Dialog_Timeout example try it

working fine

https://skydrive.live.com/?cid=f7c93b143c55f787&sc=documents&id=F7C93B143C55F787%21230#cid=F7C93B143C55F787&sc=documents[^]
 
Share this answer
 
v2

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