---
title: "Session data"
slug: "session-data"
abstract: "Describes session data when using direct HTTP requests (Sitecore CDP Stream API)."
---
# Session data

You can capture session data in an event that is triggered in the session, for example, a VIEW event or an ADD event. To pass session data in a custom-made deep link, place the deep link in the object.

| Attribute | Type | Description | Example | Required/optional |
| --- | --- | --- | --- | --- |
| `session_data` | JSON object | JSON Object An object of arbitrary session data. | N/A | Required |
| `session_data.attribute` | Any of the following:<br><br><ul><li>string</li><li>boolean</li><li>integer</li><li>float</li></ul> | One or many name/value pair attributes for custom session data. | `"is_logged_in":true` | Optional |

Example 32. Session data

```json
{
    "channel": "MOBILE_APP",
    "type": "VIEW",
    "language": "EN",
    "currency": "EUR",
    "page": "home page",
    "pos": "myretailsite/ireland",
    "browser_id": "a38b230c-11eb-4cf9-8d5d-274e9f344925​",
    "session_data": {
        "deep_link": "https://www.retailsite123.com/search?product=shoes",
        "is_logged_in": true,
        "assistance": false
     }
}

```