<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVContentKeySession/pendingExpiredSessionReports(withAppIdentifier:storageDirectoryAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVContentKeySession(cm)pendingExpiredSessionReportsWithAppIdentifier:storageDirectoryAtURL:"
  },
  "title" : "pendingExpiredSessionReports(withAppIdentifier:storageDirectoryAt:)"
}
-->

# pendingExpiredSessionReports(withAppIdentifier:storageDirectoryAt:)

Returns the expired session reports for content key sessions created with the specified app identifier.

```
class func pendingExpiredSessionReports(withAppIdentifier appIdentifier: Data, storageDirectoryAt storageURL: URL) -> [Data]
```

## Parameters

`appIdentifier`

The opaque identifier for the app.

`storageURL`

The URL that points to the directory containing expired session reports.

## Return Value

Returns an array of expired session reports.

## Discussion

The system only returns expired session reports. It doesn’t include reports for active sessions.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)