api-docs/docs/browser-tracker/markdown/browser-tracker.clientsession.md
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@snowplow/browser-tracker](./browser-tracker.md) > [ClientSession](./browser-tracker.clientsession.md)
## ClientSession interface
Schema for client client session context entity
<b>Signature:</b>
```typescript
interface ClientSession extends Record<string, unknown>
```
<b>Extends:</b> Record<string, unknown>
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [eventIndex](./browser-tracker.clientsession.eventindex.md) | number | Index of the current event in the session |
| [firstEventId](./browser-tracker.clientsession.firsteventid.md) | string \| null | Identifier of the first event for this session |
| [firstEventTimestamp](./browser-tracker.clientsession.firsteventtimestamp.md) | string \| null | Date-time timestamp of when the first event in the session was tracked |
| [previousSessionId](./browser-tracker.clientsession.previoussessionid.md) | string \| null | The previous session identifier for this user |
| [sessionId](./browser-tracker.clientsession.sessionid.md) | string | An identifier for the session (same as domain\_sessionid) |
| [sessionIndex](./browser-tracker.clientsession.sessionindex.md) | number | The index of the current session for this user (same as domain\_sessionidx) |
| [storageMechanism](./browser-tracker.clientsession.storagemechanism.md) | string | The mechanism that the session information has been stored on the device |
| [userId](./browser-tracker.clientsession.userid.md) | string | An identifier for the user of the session (same as domain\_userid) |