---
title: MediaKeySession.sessionId
slug: Web/API/MediaKeySession/sessionId
tags:
  - API
  - EncryptedMediaExtensions
  - Experimental
  - MediaKeySession
  - NeedsExample
  - Property
  - Reference
  - sessionId
browser-compat: api.MediaKeySession.sessionId
---
{{APIRef("EncryptedMediaExtensions")}}

The **`MediaKeySession.sessionId`** is a read-only property
that contains a unique string generated by the content decryption module (CDM) for the
current media object and its associated keys or licenses.

## Syntax

```js
var sessionId = mediaKeySessionObj.sessionId;
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
