<!--
{
  "availability" : [
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKURLSessionRefreshBackgroundTask/sessionIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKURLSessionRefreshBackgroundTask(py)sessionIdentifier"
  },
  "title" : "sessionIdentifier"
}
-->

# sessionIdentifier

The identifier for the triggering background transfer.

```
var sessionIdentifier: String { get }
```

## Discussion

This property holds the background session identifier from the <doc://com.apple.documentation/documentation/Foundation/URLSessionConfiguration> object used to create the background transfer. Use this identifier to create a configuration and session object to connect to the background session task.

---

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)