---
title: HTTPCookieStorage.CookiesChangedMessage
framework: foundation
role: symbol
role_heading: Structure
path: foundation/httpcookiestorage/cookieschangedmessage
---

# HTTPCookieStorage.CookiesChangedMessage

A message a cookie storage instance sends when its cookies change.

## Declaration

```swift
struct CookiesChangedMessage
```

## Overview

Overview Observe this message with the identifier cookiesChanged, or specify its type directly to the addObserver(of:for:using:) method. The Subject of this message type is HTTPCookieStorage. This message interoperates with the notification NSHTTPCookieManagerCookiesChanged. The system notifies observers of the message when the NotificationCenter posts the notification. Similarly, the system notifies observers of the notification when it posts the message.

## Topics

### Creating a message

- [init()](foundation/httpcookiestorage/cookieschangedmessage/init().md)

## Relationships

### Conforms To

- [NotificationCenter.AsyncMessage](foundation/notificationcenter/asyncmessage.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Tracking cookie storage changes

- [NSHTTPCookieManagerCookiesChanged](foundation/nsnotification/name-swift.struct/nshttpcookiemanagercookieschanged.md)
- [NSHTTPCookieManagerAcceptPolicyChanged](foundation/nsnotification/name-swift.struct/nshttpcookiemanageracceptpolicychanged.md)
