BBjAppServer::setSessionTimeout

Description

In BBj 12.0 and higher, sets the length of time in seconds a non-responsive BUI session will be considered active. If the session expires without response, the web tier will send a NET_DROPPED error back to the server; -1 corresponds to no timeout.

Syntax

Return Value

Method

void

setSessionTimeout(int timeout)

Parameters

Variable

Description

timeout

The maximum number of seconds between commands sent to the browser.

Return Value

None.

Remarks

None.

Example

rem ' BBjAppServer::setSessionTimeout

admin! = bbjapi().getAdmin("admin","admin123")
appServer! = admin!.getWebAppServer()
timeout = appServer!.getSessionTimeout()
appServer!.setSessionTimeout(timeout)
print "setSessionTimeout:",timeout," seconds."

See Also

BBjAPI

BBjAppServer

BBjAppServer::getSessionTimeout

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.