Toggle menu

loadSessions

Description

Returns session data for the supplied session keys.

Parameters

NameTypeDescription
sessionKeysArray, requiredAn array of session keys

Example Request

function(params, credentials) {
    let result = this.callWorkerMethod('sitesessionstore', 'loadSessions', {
        "sessionKeys":["5cb4d890-2ea6-4deb-a09d-5ad8f78a2964_0"],
    });
    return result;
}

Response

Each session key in the response includes the created and updated dates, sessions data, platform and platform version, and session key with the update number appended.

{
    "id": 89,
    "result": {
        "5cb4d890-2ea6-4deb-a09d-5ad8f78a2964_0": {
            "updateCount": 0,
            "sessionKey": "5cb4d890-2ea6-4deb-a09d-5ad8f78a2964_0",
            "data": {
                "message": "hello",
                "moreData": {
                    "example": "tadah"
                }
            },
            "created": "2023-08-01T13:05:54Z",
            "platformVersion": "1",
            "updated": "2023-08-01T13:05:54Z",
            "platform": "APISERVER"
        }
    },
    "jsonrpc": "2.0"
}

Last modified on 1 August 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon