# How do I create a cookie that is deposited after consent?

## How to proceed

1. Go to the Options tab of TagCommander and select the 'data storage' tab&#x20;
2. Click on the 'add data storage' button&#x20;
3. Name the cookie, attach it to the desired container.&#x20;
4. Set its life span and usage, using the drop-down menus.&#x20;
5. Assign a privacy category to it&#x20;
6. Click on save&#x20;
7. Go to the TagCommander editing step. You can now generate and deploy your container. The cookie is ready to use.

<figure><img src="/files/2R3VBMTeythY8cEfD5oc" alt=""><figcaption></figcaption></figure>

## Downloads

{% file src="/files/0VTg9EyEza3m5AbAVH8O" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://community.commandersact.com/customer-success/cookbooks-and-tutorials/consent-management/how-do-i-create-a-cookie-that-is-deposited-after-consent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
