Jump to: navigation, search

Session Resource

Defines the session resource.


The session resource contains the session information relative to a customer visit after a SignIn event was received. The session resource is created when the customer authenticates on the website. Then, all the events and pages involved in the customer's browsing activity are associated with the session till the session ends (the user signs out). For further information about events, see Event Resource.

Resource Details

Field Type Mandatory Description
sessionID string yes The unique ID of the session.
identityId string yes The ID of the associated Identity resource.
startDate long yes The date at which the session started (when the customer signed in).
endDate long no The date at which the session ended (when the customer signed out). 0 means that the session is not terminated.
duration int no The session duration, in seconds.
eventIds string[] no Array of event IDs; all the events which occurred during the session.
events event[] no Array of the associated events.
pageIds string[] no Array of page IDs; all the pages visited during the current session.
pages page[] no Array of the pages visited during this session.

<references />

Related Operations


The following request retrieves a session resource with its session ID. See Query session for further information. Request



 HTTP/1.1 200 OK
Date: Wed, 12 Dec 2012 16:20:11 GMT
Content-Type: application/json; charset=UTF-8
Date: Wed, 12 Dec 2012 16:20:11 GMT
Accept-Ranges: bytes
Server: Restlet-Framework/2.1.0
Content-Length: 208

This page was last edited on February 15, 2013, at 16:01.
blog comments powered by Disqus