Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

ASP Server Object ScriptTimeout Property

The ScriptTimeout property specifies the maximum amount of time a script can run before it is terminated. The delay before scripts are ended is by default 90 seconds. This will not take effect while a server component is processing.

Syntax: ASP Server Object ScriptTimeout Property

Server.ScriptTimeout = NumSeconds

Parameters: ASP Server Object ScriptTimeout Property

NumSeconds

Specifies the maximum number of seconds that a script can run before the server terminates it. The default value is 90 seconds.

Note

The ScriptTimeout property cannot be set to a value less than that specified in the registry settings or configuration file. For example, if NumSeconds is set to 10, and the registry setting or configuration file contains the default value of 90 seconds, scripts will time out after 90 seconds. However, if NumSeconds were set to 100, the scripts would time out after 100 seconds.

Examples: ASP Server Object ScriptTimeout Property

The following example causes scripts to time out if the server takes longer than 30 seconds to process them.

<% Server.ScriptTimeout = 30 %>

The following example retrieves the current value of the ScriptTimeout property and stores it in the variable TimeOut.

<% TimeOut = Server.ScriptTimeout %>

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.