Developers

SetSessionData

Usage

Use this method to set the sessionData that you already obtained.

client.setSessionData({sessionToken:string, sessionId:string, expirationTime:integer});

To obtain the sessionData see the method generateSession.

Mandatory parameters

Name Type Description
sessionToken string Session token to be set.
sessionId string Session ID to be set.
expirationTime string How long the SDK considers the session token valid, expressed in milliseconds.

Options

This method does not have any options.

Response data format

This method does not return any values.

Example

The following example sets the sessionData obtained through the generateSession:

client.generateSession().then(function(response){
    client.setSessionData(response.data);
});