---
title: sessionID
framework: mailkit
role: symbol
role_heading: Instance Property
path: mailkit/mecomposesession/sessionid
---

# sessionID

A unique identifier for the session.

## Declaration

```swift
var sessionID: UUID { get }
```

## Discussion

Discussion A compose session’s identifier is only valid for the duration that Mail shows a compose window. If the user opens a compose window, saves it as a draft, and later reopens it, the compose session may have a different sessionID.

## See Also

### Managing Compose Sessions

- [reload()](mailkit/mecomposesession/reload().md)
