Top
NetCOBOL V11.0 ISAPI Subroutines User's Guide
FUJITSU Software

3.11.6 COBW3_GET_SESSION_INFO

This subroutine acquires information about the current session.

How to write

CALL "COBW3_GET_SESSION_INFO" USING COBW3.

Data setting for calling

None

Processing result data

COBW3-SESSION-TIMEOUT

The timeout period (s) of the current session is set.

COBW3-SESSION-ID

The number indicating the session ID of the current session is set.

COBW3-SESSION-DATA-SIZE

The session data length (byte length) of the current session is set. This data can be acquired only if COBW3-SESSION-DATA-GROUPITEM is set as the format of the session data when a session is started. Zero is set if COBW3-SESSION-DATA-OBJECT is set as the format of the session data.

COBW3-SESSION-DATA-TYPE

The format of the session data of the current session is set.

Condition name

Value

COBW3-SESSION-DATA-GROUPITEM

"0"

Uses a group item as the session data.

COBW3-SESSION-DATA-OBJECT

"1"

Uses an object reference item as the session data.

COBW3-SESSION-STATUS

The status of the current session is set.

Condition name

Value

COBW3-SESSION-STATUS-NON

"0"

A session has not been started or has been terminated.

COBW3-SESSION-STATUS-STARTED

"1"

A session has been started.