Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:
Hi all,

I am working on web application & facing session logout problem after few minutes.

I have set session timeout in web config file as below :

<sessionState timeout="320" cookieless="false" mode="InProc"></sessionState>


Also on iis7 server ,i have set session timeout = 600 mins .

And also set the value for Idle Time-out(minutes) to “600” In advanced settings (Application Pool).


But the session is expire after few minutes, & facing same problem in all browser.


Application is working fine on local server.


Please help me to sort out this problem.


Sorry for poor english.


And thanks in advance.
Posted
Comments
VICK 20-Feb-14 1:27am    
Once in a past, i faced the SAME PROBLEM, and finally the solution was Windows Re-Installation.. You can try that.
Maarten Kools 20-Feb-14 1:29am    
Is it expiring after being idle, or even while there is activity?
udusat13 20-Feb-14 1:33am    
Session is expiring , while idle
Maarten Kools 20-Feb-14 2:02am    
Are you using Forms authentication? Can you also post that part of your web.config file?
Charan_Kumar 20-Feb-14 2:59am    
had u added any scriptmanager in your code??,
if yes try for AsyncPostBackTimeout property for script manager

1 solution

Based on the details provided, all I can say is:
1. Your app pool is recycling for anything such as inactivity, exception, or configuration
2. You need to have a look again at the values that you mentioned. Is it seconds/minutes everywhere and not all mixed-up?

[Please accept/up-vote answers or solutions that work for you to encourage others]
 
Share this answer
 
Comments
udusat13 20-Feb-14 2:17am    
Thanks For reply.
Yes i have checked. all the values are in minutes.
CoderPanda 20-Feb-14 3:22am    
Did you check your event viewer to see if app pools are recycling for some reason?
udusat13 20-Feb-14 3:45am    
No, i didnt chceck event vieewer

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