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

# comment

The cookie’s comment string.

## Declaration

```swift
var comment: String? { get }
```

## Discussion

Discussion This value is nil if the cookie has no comment. You can present this string to the user, explaining the contents and purpose of this cookie.

## See Also

### Getting user-readable cookie metadata

- [commentURL](foundation/httpcookie/commenturl.md)
