Description
Returns session data for the supplied session keys.
Parameters
Name | Type | Description |
---|---|---|
sessionKeys | Array, required | An 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"
}