Setting Server Timeout in asp?

H

Hermes

Hi All,

Is there a way to specify the server timeout for IIS in an asp file rather
than with IIS. As I would just want one page to have a long timeout period
but limit the other pages in the site.

Kind regards,
Hermes
 
A

Andrew Zamkovoy

Hello,

Is way for set timeout for application itself. Not for single page.

For single page "timeout" (what you exactly mean under "page timeout"?) you
should use something like this:

For all pages with "short timeout":
<meta http-equiv="Refresh" content="<%=120%>; URL=<%=Application
("BASEHREF")%>/my_extra_timeout.asp">

For all pages with "long timeout":
<meta http-equiv="Refresh" content="<%=Session.Timeout * 60%>;
URL=<%=Application ("BASEHREF")%>/my_extra_timeout.asp">

With best regards,

Should you have any questions, please don't hesitate to contact me.
If you response to an email, please quote the complete message.
http://1click.lv
 
M

Michael D. Kersey

Hermes said:
Is there a way to specify the server timeout for IIS in an asp file rather
than with IIS. As I would just want one page to have a long timeout period
but limit the other pages in the site.
Yes, the ScriptTimeout property of the Server object is what you want. A
script with the following statement times out if the server takes longer
than 100 seconds to process it:
Server.ScriptTimeout = 100

IIRC the Server.ScriptTimeout property can be set to a value _greater_
than the IIS setting, but not less.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top