ScriptTimeout

The ScriptTimeout property specifies the maximum amount of time a script can run before it is terminated.

The timeout will not take effect while a server component is processing.

Syntax

Server.ScriptTimeout = NumSeconds

Parameters

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

Example

The following example causes scripts to timeout 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 %>
 

Applies To

Server Object