Editar

Partilhar via


Session.IsSessionActive(Integer) Method

Version: Available or changed with runtime version 1.0.

Tests if the specified SessionID is active on the server instance where it was started.

Syntax

Ok :=   Session.IsSessionActive(SessionID: Integer)

Note

This method can be invoked without specifying the data type name.

Parameters

SessionID
 Type: Integer
The ID of the session that you want to test if it is still active.

Return Value

Ok
 Type: Boolean
true if the specified SessionID is active on the server instance where it was started, otherwise false.

Remarks

Use this method to test if a session has completed or is still active, for example if you want to check that a session started with StartSession is still running.

Note

The method looks for sessions on the local machine.

Session Data Type
Get Started with AL
Developing Extensions