Get active session information

When to use:

To identify active sessions in order to gather further information about those sessions.

Query:
# Tokens: APP_NAME
# Get active sessions in an ABL application
{"O":"PASOE:type=OEManager,name=SessionManager","M":["getSessions","oepas1"]}
Note: In this example, the token APP_NAME is replaced with oepas1.
Result:

The output provides details about the active sessions that includes the sessionID, requestState, and the agentID which runs the request.

{
  "getSessions": [
    {
      "ablSessionID": "",
      "agentID": "J37IOWAITpC4rJqABEkVtQ",
      "bound": false,
      "requestState": "RUNNING",
      "sessionID": "D368269A53B26DCC3AD4F8BC417434B2F6120FA4DF22.oepasw",
      "sessionPoolID": "RxvTnLejSJSALOs0zSNveA",
      "adapterType": "APSV",
      "agentConnInfo": {
        "agentID": "J37IOWAITpC4rJqABEkVtQ",
        "agentAddr": "localhost/127.0.0.1:62002",
        "connPoolID": "twJQlQtGRRuv2vGQRrsjdw",
        "connID": "OTAmNv77QC-k5gEnnsoqYQ",
        "state": "RESERVED",
        "localAddr": "/127.0.0.1:49798"
      },
      "elapsedTimeMs": 3568,
      "lastAccessStr": "2025-03-04T22:15:58.731-0500",
      "sessionState": "RESERVED",
      "requestID": "ROOT:a:00000007",
      "clientConnInfo": {
        "httpSessionId": "D368269A53B26DCC3AD4F8BC417434B2F6120FA4DF22.oepasw",
        "reqStartTimeStr": "2025-03-04T22:15:58.731-0500",
        "clientName": "127.0.0.1",
        "executerThreadId": "thd-4",
        "requestID": "ROOT:a:00000007",
        "requestProcedure": "server.p",
        "requestUrl": "http://localhost:8817/apsv",
        "sessionID": "D368269A53B26DCC3AD4F8BC417434B2F6120FA4DF22.oepasw",
        "adapterType": "APSV",
        "elapsedTimeMs": 3571
      },
      "sessionType": "SESSION_FREE"
    }
  ]
}