---
title: "cookieJar() | Grafana k6 documentation"
description: "Get active HTTP Cookie jar."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# cookieJar()

Get the active cookie jar.

Expand table

| Type                                                           | Description         |
|----------------------------------------------------------------|---------------------|
| [CookieJar](/docs/k6/latest/javascript-api/k6-http/cookiejar/) | A CookieJar object. |

### Example

JavaScript ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy

```javascript
import http from 'k6/http';

export default function () {
  const jar = http.cookieJar();
}
```
