---
title: NSNotificationPostToAllSessions
framework: foundation
role: symbol
role_heading: Global Variable
path: foundation/nsnotificationposttoallsessions
---

# NSNotificationPostToAllSessions

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
var NSNotificationPostToAllSessions: DistributedNotificationCenter.Options { get }
```

## See Also

### Constants

- [NSNotificationDeliverImmediately](foundation/nsnotificationdeliverimmediately.md)
- [deliverImmediately](foundation/distributednotificationcenter/options/deliverimmediately.md)
- [postToAllSessions](foundation/distributednotificationcenter/options/posttoallsessions.md)
