skip to main content
OpenEdge Mobile 11.5.1 Updates : Session management updates : JSDOSession properties : connected property
 
connected property
Returns a Boolean that indicates the most recent online state of the current JSDOSession or Session object, when it last determined if the Mobile Web application it manages is available.
If the property value is true, the object most recently determined that the session is connected and logged in to its Mobile Web application. If its value is false, the session was last found to be disconnected. The default value is false.
Because of the dynamics of any network environment, the value of this property might not reflect the current status of the object's connection to its Mobile Web application. You can therefore invoke the object's ping( ) method (either explicitly or automatically by setting the value of its pingInterval property) to update the object's most recent online status.
Data type: Boolean
Access: Read-only
Applies to: progress.data.JSDOSession class, progress.data.Session class
The most recent session online status determination might be identified from any of the following:
*A successful result of the JSDOSession or Session object executing its login( ) method, which sets the property to true. Prior to calling login( ), the value of this property is false.
*A successful result of the JSDOSession or Session object executing its logout( ) method, which sets the property to false.
*The JSDOSession or Session object receiving an offline or online event from its window object.
*A JSDO attempting to send a request to a Rollbase or OpenEdge Mobile service that the JSDOSession or Session object manages.
*The result of the JSDOSession or Session object executing its ping( ) method.

See also:

login( ) method (JSDOSession class), login( ) method (Session class), offline event, online event, ping( ) method (JSDOSession class), ping( ) method (Session class)