sessionID considerations for web transactions

In a VGWebTransaction program, the sysVar.sessionID system variable 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 running on behalf of a single user within a single internet session. A related variable for VGWebTransaction programs is sysVar.conversationID.

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

For characteristics and compatibility considerations, see sessionID.