<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/HTTPCookieStorage/CookiesChangedMessage",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So19NSHTTPCookieStorageC10FoundationE21CookiesChangedMessageV"
  },
  "title" : "HTTPCookieStorage.CookiesChangedMessage"
}
-->

# HTTPCookieStorage.CookiesChangedMessage

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

```
struct CookiesChangedMessage
```

## Overview

Observe this message with the identifier [`cookiesChanged`](/documentation/Foundation/NotificationCenter/MessageIdentifier/cookiesChanged), or specify its type directly to the `addObserver(of:for:using:)` method.
The [`Subject`](/documentation/Foundation/NotificationCenter/MainActorMessage/Subject) of this message type is [`HTTPCookieStorage`](/documentation/Foundation/HTTPCookieStorage).

This message interoperates with the notification [`NSHTTPCookieManagerCookiesChanged`](/documentation/Foundation/NSNotification/Name-swift.struct/NSHTTPCookieManagerCookiesChanged).
The system notifies observers of the message when the [`NotificationCenter`](/documentation/Foundation/NotificationCenter) posts the notification.
Similarly, the system notifies observers of the notification when it posts the message.

## Topics

### Creating a message

[`init()`](/documentation/Foundation/HTTPCookieStorage/CookiesChangedMessage/init())

Creates a message that the cookies in a cookie storage instance changed.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`AsyncMessage`](/documentation/Foundation/NotificationCenter/AsyncMessage)

---

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)