http_session_timeout option [database]

Specify the amount of time, in minutes, that the client waits for an HTTP session to time out before giving up.

Allowed values

Integer (1 to 525600)

Default

30

Scope

Can be set for the PUBLIC group only. DBA authority required.

Remarks

This option provides variable session timeout control for web service applications. A web service application can change the timeout value from within any request that owns the HTTP session, but a change to the timeout value can impact subsequent queued requests if the HTTP session times out. The web application must include logic to detect whether a client is attempting to access an HTTP session that no longer exists. This can be done by examining the value of the SessionCreateTime connection property to determine whether a timestamp is valid: if the HTTP request is not associated with the current HTTP session, then the SessionCreateTime connection property contains an empty string.

If you need a connection to persist for the duration of the HTTP session, it is recommended that you use the SessionTimeout option in the sa_set_http_option system procedure. See sa_set_http_option system procedure.

See also