---
title: path
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/httpcookie/path
---

# path

The cookie’s path.

## Declaration

```swift
var path: String { get }
```

## Discussion

Discussion The cookie will be sent with requests for this path in the cookie’s domain, and all paths that have this prefix. A path of "/" means the cookie will be sent for all URLs in the domain.

## See Also

### Getting cookie host properties

- [domain](foundation/httpcookie/domain.md)
- [portList](foundation/httpcookie/portlist.md)
