Using Session Information
When sessions are enabled, the web service can use the variable %session, which is an instance of %CSP.SessionOpens in a new tab. Properties of this object contain system information and any information you choose to add. Some of the commonly used properties are as follows:
-
SessionID — Unique identifier of this session.
-
EndSession — Normally this equals 0. Set this property to 1 in order to end the session.
-
Data — InterSystems IRIS multidimensional array intended to hold any custom data.
-
NewSession — Equals 1 if this is new session.
-
AppTimeout — Specifies the timeout value for the session, in seconds.
The %session object provides many other properties, as well as some methods for tasks related to sessions. For further details, see the class documentation for %CSP.SessionOpens in a new tab.