---
title: postToAllSessions
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/distributednotificationcenter/options/posttoallsessions
---

# postToAllSessions

When set, the notification is posted to all sessions. When not set, the notification is sent only to applications within the same login session as the posting task.

## Declaration

```swift
static var postToAllSessions: DistributedNotificationCenter.Options { get }
```

## See Also

### Constants

- [NSNotificationDeliverImmediately](foundation/nsnotificationdeliverimmediately.md)
- [deliverImmediately](foundation/distributednotificationcenter/options/deliverimmediately.md)
- [NSNotificationPostToAllSessions](foundation/nsnotificationposttoallsessions.md)
