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:
- The system variable sysVar.sessionID contains a system-dependent user identifier or terminal identifier for your program
- sysVar.sessionID is supported for this use only for compatibility with products that preceded EGL (specifically, for CSP releases prior to CSP 370AD Version 4 Release 1). It is recommended that you use sysVar.userID or sysVar.terminalID instead.
You can use sysVar.sessionID in these ways:
- As the source in an assignment or move statement
- As a variable in a logical expression
- As the argument in a return statement
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.