> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/data/store-cookie.md).

# Store Cookie

Store Cookie reads a named browser cookie and saves its value in the [Value Store](/values/value-store.md). Use it when a later step or check needs the cookie content.

![Store cookie Test Step](https://app.does.qa/screenshots/node/data_cookie_store.png)

## When to use it

* Capture a session or tracking cookie after login for a later API step.
* Save a consent cookie value before asserting it with [Check Cookie](/test-steps/check/check-cookie.md).
* Reuse the stored value in form fields or headers through a [Value](/values/value-store.md) reference.

## Configure

### Basics

| Field               | What to set                                     |
| ------------------- | ----------------------------------------------- |
| **Cookie Name**     | Name of the cookie to read                      |
| **Value Store Key** | Name to save the value under in the Value Store |

### Advanced

| Field              | What to set                                          |
| ------------------ | ---------------------------------------------------- |
| **Status on fail** | [Failed Status](/test-step-options/failed-status.md) |

## Related

* [Check Cookie](/test-steps/check/check-cookie.md)
* [Set LocalStorage](/test-steps/data/set-localstorage.md)
* [Data](/test-steps/data.md)

**Tags:** `data`, `cookie`, `store`
