---
title: "pendingExpiredSessionReports(withAppIdentifier:storageDirectoryAt:)"
framework: avfoundation
role: symbol
role_heading: Type Method
path: "avfoundation/avcontentkeysession/pendingexpiredsessionreports(withappidentifier:storagedirectoryat:)"
---

# pendingExpiredSessionReports(withAppIdentifier:storageDirectoryAt:)

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

## Declaration

```swift
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

Return Value Returns an array of expired session reports.

## Discussion

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

## See Also

### Handling expired session reports

- [removePendingExpiredSessionReports(_:withAppIdentifier:storageDirectoryAt:)](avfoundation/avcontentkeysession/removependingexpiredsessionreports(_:withappidentifier:storagedirectoryat:).md)
