Chapter 3 DynaScript Predefined Objects


session property

The session object has this property:

timeOut property

Syntax

session.timeOut

Description

The duration of the session (in minutes). This property exists only if the timeOut value has been changed from the default of five minutes. To check if this property exists, use:

if ( exists (session.timeOut)) {
. . .

For more information on Dynamo's default cookie timeout see "Changing Dynamo configuration settings" in PowerDynamo User's Guide.

Each session instance can set its own timeOut value.

Example

This script sets a time out of 10 minutes for the session object after a user's login has been validated:

<!--SCRIPT 
if ( exists (session)
&& session.loginCorrect ){
session.timeOut = 10;
}
-->

 


Copyright © 1999 Sybase, Inc. All rights reserved.