STPSRVSET Function

Sets the value of a server session time-out.

Category:Character

Syntax

STPSRVSET(SESSION TIMEOUT, newvalue)

Required Arguments

SESSION TIMEOUT

is the character string name of the property that specifies that the server session time-out value is being set.

newvalue

specifies the number of seconds that elapse before a session expires. The default session time-out is 900 (15 minutes).

Details

The STPSRVSET function takes one character string property (SESSION TIMEOUT) and one numeric string property (the number of seconds before the session expires) and returns a numeric string result. The return code is zero for success, nonzero for failure.

Note: The APPSRVSET function can be used instead of STPSRVSET. This feature is provided in order to enable you to convert existing SAS/IntrNet programs to stored processes. The following Application Dispatcher properties are not supported by the SAS Stored Process Server: REQUIRE COOKIE, REQUEST TIMEOUT, and AUTOMATIC HEADERS.

Example

This example shows how to set the session time-out to 900 seconds:

rc=stpsrvset('session timeout',900);
Last updated: January 9, 2026