Last post Aug 05, 2010 07:14 AM by anujtripathi
Apr 20, 2007 09:41 PM|jcrabtreesla|LINK
I have set the session to last 24 hours with this statement in my web.config:
But the session still ends after 20 min of inactivity. What am I missing here? Thanks.
Apr 20, 2007 10:14 PM|Javier Luna|LINK
Apr 20, 2007 10:26 PM|jcrabtreesla|LINK
Apr 24, 2007 07:56 AM|swapprose|LINK
can you plz tell me where i have to set sessiontimeout in iis?
Apr 24, 2007 03:30 PM|jcrabtreesla|LINK
I found it in the IIS manager. You right click the web site > Properties > Home Directory > Configuration > Options it is in that tab.
Actually mine is still not changing. I have set the timeout for my one specific site and the Web Sites folder. It is still timing out after 20 min (I set both to 90). Does anyone know what else I need to do here or why this setting doesn't seem to have any
Apr 30, 2007 12:52 PM|donniedarko|LINK
I seem to be suffering with something similar. I am using asp.net 2.0 and refresh the page using the following in my masterpage:
Response.AddHeader("Refresh", Convert.ToString((Session.Timeout * 60) + 5))
In this masterpage I also check for a "logged" session variable, if it's not there I log the user out. I've set the session timeout to be 20 minutes but it doesn't refresh the page. This takes effect on other servers
though. Is there anything in particular I should be checking for on IIS as I've run out of ideas.
May 11, 2007 12:01 AM|wheresaldo|LINK
Has anyone got an answer to this problem? I have changed the session timeout to 240 minutes on IIS>Properties>Home Directory>Configuration>Options and also on IIS>ASP.NET tab>State Management Tab, but the same problem, it just times out at 20 minutes.
Jul 08, 2007 09:08 PM|CMessineo|LINK
I have the same problem. I can't get the sessionState timeout to be anything other than 20 minutes.
I changed sessionState timeout to 60, but it still timesout after 20 minutes.
I have searched like crazy for an answer, several people mention changing the IIS setting, but others say that doesn't work and web.config should take precedence over IIS anyway.
Is this a known bug? Is there a solution?
Jul 17, 2007 06:22 AM|ghinx|LINK
Have you checked the timout on the cookie?
Jul 27, 2007 08:28 PM|Yan_Luo2001|LINK
I am using IIS7 on Vista, had the same issue: when ever I set timeout < 20 min, my setting works. When I set it > 20 min, session time out at 20 min. I set session time out in all levels with 'Session State' setting including Server level, site level, application
level, still not work.
AT LAST, I find in the Advanced Setting in the Application Pool level, There's a 'Idle Timeout' setting under 'Process Mode' which has the default setting of 20 min. After I changed that, it finally works for me. The default SessionState is 'In Process',
I guess this is why it was affected by the setting under Process Mode.
I never had this kind of issue in IIS6. Just in IIS7 because it's all different.
Jul 28, 2007 03:38 AM|ravindraravu|LINK
I faced similar problem. It solved by setting forms timeout which is default 30
Aug 05, 2010 01:11 AM|peterdarvas|LINK
If people are still having problems with this & I'm currently using .Net 3.5 on Server2008 with IIS7 then the following might help in the case where cookies are being used.
NB they ALL need to be set:
Aug 05, 2010 07:14 AM|anujtripathi|LINK
this tutorial which state the way to set session time out in asp.net. Also it will give you the main reasons and their respective solutions for session loss.
Hope this will help you in rectify the issue.