Classic asp and IIS 6.0

Classic asp and IIS 6.0

am 27.02.2007 16:51:20 von Anon

In our application we need to increase the session timeout to 2 hours when
the user requests a certain page.
We use the following code to do that.
Session.Timeout = 120
This works fine on IIS 5.0.
After we moved the application to IIS 6.0 the session timeout does increase
when the page in executed. It logs the user out after 20 mins which is the
default.
Is there any setting on IIS 6.0 which we need to change ?

Thanks for your help.

Re: Classic asp and IIS 6.0

am 27.02.2007 23:46:47 von Anthony Jones

"anon" wrote in message
news:BDCB804B-9BA5-460C-B484-AA898716CB95@microsoft.com...
> In our application we need to increase the session timeout to 2 hours when
> the user requests a certain page.
> We use the following code to do that.
> Session.Timeout = 120
> This works fine on IIS 5.0.
> After we moved the application to IIS 6.0 the session timeout does
increase
> when the page in executed. It logs the user out after 20 mins which is the
> default.
> Is there any setting on IIS 6.0 which we need to change ?
>
> Thanks for your help.
>

By default an application pool will be configured to shutdown after 20
minutes if it has been idle. To absolutely sure that the user gets the full
allotted period of timeout this value needs to be the same or larger than
the session timeout.

You can find it by first checking which application pool your application is
assigned to in the application folders propeties home directory tab
(probably DefaultAppPool).

The open the properties of the pool. On the performance tab change the idle
timeout.

Re: Classic asp and IIS 6.0

am 28.02.2007 00:53:13 von Anon

Thanks for your response. Will try what you suggested.

Re: Classic asp and IIS 6.0

am 28.02.2007 02:10:57 von Dave Anderson

Anthony Jones wrote:
> By default an application pool will be configured to
> shutdown after 20 minutes if it has been idle.

Goodness! I have plenty of ASP experience, but would never have looked for
session limit problems in the application pool if I had not read this.

Of course, my servers all get 24/7 usage, so this would have been unlikely
to affect me, but still...



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.