Re: Simple Session Timeout for 60 minutes

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kevin Spencer (kspencer_at_takempis.com)
Date: 07/28/04


Date: Wed, 28 Jul 2004 09:19:47 -0400

Note that tripling the Timeout for Sessions is going to increase memory use
on the server for every user on your site. Chances are, this (tripling the
Timeout value) is the wrong solution to a problem you haven't mentioned.

-- 
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Shan Plourde" <------@---.net> wrote in message
news:faGNc.772$vIJ.466@news04.bloor.is.net.cable.rogers.com...
> You need to set your session timeout in your web.config.
>       <sessionState mode="StateServer"
>      stateConnectionString="tcpip=127.0.0.1:42424" ... timeout="60"/>
>
> Timeout = "60". This works regardless of your IIS setting described
> below I believe. I'm not sure what IIS sessions are.
>
> Open IIS in Computer Management. Right Click on your website and select
> Properties from the pop up menu. Navigate to the "Home Directory" tab.
> Click the Configuration button. Click the Options tab. This is IIS
> session timeout which I believe is different from .NET sessions.
> Shan
>
> DavidS wrote:
>
> >I need to have an ASPX web page timeout if no rendering for 60 minutes.
If I set Session.Timeout = 60 in Page_Load function of in the script section
of the HTML page - I still get default of 20 minutes always.  How can I
ensure a session timeout of 60 minutes and not the default of 20 minutes.
Also, 20 minutes for the other web pages is ok, but for my main page - I
want this to be 60 minutes.
> >Can you help (p.s. please don't forward me to pay site for solution too)
> >
> >
>


Relevant Pages

  • Re: Window Computer Locks
    ... We have disabled the server timeout and most sessions work fine with it. ... time period AND that there is no group policy affecting the PC that would ... Go to Administrative Tools -> Terminal Services Configuration. ...
    (microsoft.public.windows.server.security)
  • Re: Window Computer Locks
    ... services terminating sessions after periods of inactivity. ... The session is locking. ... have tried and it does not appear to be these that are causing the timeout. ...
    (microsoft.public.windows.server.security)
  • Re: RD, logging back in loads new desktop instead of old session
    ... timeout really high, ... Just odd that it used to work ... running server 2003. ... Under 'Sessions' check the timeouts for disconnected sessions, ...
    (microsoft.public.windows.terminal_services)
  • Re: Need to keep client from being logged out at timeout.
    ... I don't come to forums but as a last resort after trying everything ... within reason including what you said to do to no avail. ... really shouldn't be using sessions at all. ... not just as a result of a timeout. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: RWW/Connect to my computer at work issue
    ... IIS Timeout Configurations. ... verify if the SBS server has been configured properly. ... Step 2: Check IIS Timeout Configurations ...
    (microsoft.public.windows.server.sbs)