---
title: httpShouldHandleCookies
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlrequest/httpshouldhandlecookies
---

# httpShouldHandleCookies

A Boolean value indicating whether cookies will be sent with and set for this request.

## Declaration

```swift
var httpShouldHandleCookies: Bool { get set }
```

## Discussion

Discussion true if the default cookie handling will be used for this request, false otherwise. The default is true.

## See Also

### Controlling request behavior

- [timeoutInterval](foundation/urlrequest/timeoutinterval.md)
- [httpShouldUsePipelining](foundation/urlrequest/httpshouldusepipelining.md)
- [allowsCellularAccess](foundation/urlrequest/allowscellularaccess.md)
- [allowsPersistentDNS](foundation/urlrequest/allowspersistentdns.md)
- [assumesHTTP3Capable](foundation/urlrequest/assumeshttp3capable.md)
- [cookiePartitionIdentifier](foundation/urlrequest/cookiepartitionidentifier.md)
- [requiresDNSSECValidation](foundation/urlrequest/requiresdnssecvalidation.md)
