---
title: contentProtectionSessionIdentifier
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcontentkeysession/contentprotectionsessionidentifier
---

# contentProtectionSessionIdentifier

The identifier for the current content protection session.

## Declaration

```swift
var contentProtectionSessionIdentifier: Data? { get }
```

## Discussion

Discussion The content protection session identifier is a unique string the session generates.

## See Also

### Managing expiration

- [expire()](avfoundation/avcontentkeysession/expire().md)
- [makeSecureTokenForExpirationDate(ofPersistableContentKey:completionHandler:)](avfoundation/avcontentkeysession/makesecuretokenforexpirationdate(ofpersistablecontentkey:completionhandler:).md)
- [renewExpiringResponseData(for:)](avfoundation/avcontentkeysession/renewexpiringresponsedata(for:).md)
