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

# websiteDataStore

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

## Declaration

```swift
var websiteDataStore: WKWebsiteDataStore { get set }
```

## Discussion

Discussion If you don’t assign a value to this property, the configuration object uses the default data store object to store data persistently. To create a private web-browsing session, create a nonpersistent data store using the nonPersistent() method and assign it to this property. For more information, see WKWebsiteDataStore.

## See Also

### Configuring the web view’s behavior

- [userContentController](webkit/wkwebviewconfiguration/usercontentcontroller.md)
- [processPool](webkit/wkwebviewconfiguration/processpool.md)
- [applicationNameForUserAgent](webkit/wkwebviewconfiguration/applicationnameforuseragent.md)
- [limitsNavigationsToAppBoundDomains](webkit/wkwebviewconfiguration/limitsnavigationstoappbounddomains.md)
- [upgradeKnownHostsToHTTPS](webkit/wkwebviewconfiguration/upgradeknownhoststohttps.md)
