<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKHTTPCookieStoreObserver",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WKHTTPCookieStoreObserver"
  },
  "title" : "WKHTTPCookieStoreObserver"
}
-->

# WKHTTPCookieStoreObserver

The methods to adopt in an object that monitors changes to a webpage’s cookies.

```
@MainActor protocol WKHTTPCookieStoreObserver : NSObjectProtocol
```

## Overview

Adopt the methods of the [`WKHTTPCookieStoreObserver`](/documentation/WebKit/WKHTTPCookieStoreObserver) protocol to track changes to cookies associated with a webpage. To observe the actual cookie changes, call the [`add(_:)`](/documentation/WebKit/WKHTTPCookieStore/add(_:)) method of the [`WKHTTPCookieStore`](/documentation/WebKit/WKHTTPCookieStore) you use to manage cookies. When a cookie changes, the cookie store notifies all observers of the changes.

## Topics

### Responding to Cookie Changes

[`cookiesDidChange(in:)`](/documentation/WebKit/WKHTTPCookieStoreObserver/cookiesDidChange(in:))

Tells the delegate that the cookies in the specified cookie store changed.



---

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)