sysVar.sessionID

In Web applications, the system variable sysVar.sessionID contains an ID that is specific to the Web application server session. You can use the sysVar.sessionID value as a key value to access file or database information shared between programs.

Outside of Web applications, the following statements apply:

You can use sysVar.sessionID in these ways:

The characteristics of sysVar.sessionID are as follows:

Primitive type

CHAR

Data length

8 (padded with blanks if the value has less than 8 characters)

Is value always restored after a converse?

Yes

sysVar.sessionID is initialized from the Java Virtual Machine system property user.name; and if the property cannot be retrieved, sysVar.sessionID is blank.

Example

  myItem = sysVar.sessionID;

Related reference
sysVar.terminalID
sysVar.userID