---
title: websiteDataStore
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webpage/configuration/websitedatastore
---

# websiteDataStore

The object you use to get and set the site’s cookies and to track the cached data objects.

## Declaration

```swift
@MainActor var websiteDataStore: WKWebsiteDataStore
```

## Discussion

Discussion To create a private web-browsing session, create a non-persistent data store using the nonPersistent() method and assign it to this property. For more information, see WKWebsiteDataStore.
