The GetSessions method expects a SessionId. The session id parameter is not currently used by this call; therefore, this method can be used without first starting a session. The SAWSResult objects sOutput member contains an XML encoded string with the current status of all extant sessions.
Values updated
Since a session id is not required for this call, the LastDateTime field will not be updated if the client has an active session.
Arguments
sSessionId - not used
Return
SAWSResult:
iError
0 if successful, otherwise an error number
sErrorMsg
Empty if successful, otherwise a description of the problem
sOutput
If successful the string will contain an XML encoded collection of session objects as described below.
Session XML
Root element: Sessions
Child Element: Session
SessionID
String containing the server assigned id
Started
String containing the date and time the session was started
User
String containing the windows authenticated client user
State
The current state of the session(SAServerStarted, SAEncyOpen)
Encyclopedia
The current server and encyclopedia if open
LastAction
String containing the date and time of the last action performed in this session