---
title: WKHTTPCookieStoreObserver
framework: webkit
role: symbol
role_heading: Protocol
path: webkit/wkhttpcookiestoreobserver
---

# WKHTTPCookieStoreObserver

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

## Declaration

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

## Overview

Overview Adopt the methods of the WKHTTPCookieStoreObserver protocol to track changes to cookies associated with a webpage. To observe the actual cookie changes, call the add(_:) method of the 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:)](webkit/wkhttpcookiestoreobserver/cookiesdidchange(in:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Observing cookie store changes

- [add(_:)](webkit/wkhttpcookiestore/add(_:).md)
- [remove(_:)](webkit/wkhttpcookiestore/remove(_:).md)
