Jump to: navigation, search

Session Resource

ApiRef2.png
Defines the session resource.

Description

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

Example

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

GET http://192.168.73.246:9081/backend/data/sessions/461d54d0-3fa4-11e2-aee5-00505625a04f

Response

 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
{"eventIds":null,"events":null,"pageIds":null,"pages":null,
"sessionId":"461d54d0-3fa4-11e2-aee5-00505625a04f",
"startDate":1354798555805,"endDate":1354798556259,
"duration":0,"identityId":"user@genesyslab.com"}










This page was last edited on February 15, 2013, at 16:01.
Comments or questions about this documentation? Contact us for support!