Interacting With Applications › Identify Application Sessions › Session ID Variable
The variable that represents the session ID of the session in which the program is running is:
&SID