> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebruno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cookies in Bruno

Cookies are used to store user information, session data, and provide personalized content. Bruno allows you to add, send, view, and delete request cookies. After executing the request, you can easily inspect the cookies by clicking on the **Cookies** icon.

## Cookie Attributes

* **Domain**: Specifies the domain where the cookie is valid.
* **Path (optional)**: Specifies the URL path where the cookie will be sent.
* **Key**: The name/identifier of the cookie.
* **Value**: The data that the cookie will store.
* **Expiration**: The expiration date and time for the cookie.
* **Secure**: Ensures the cookie is only sent over HTTPS.
* **HTTP Only**: Restricts access to the cookie from JavaScript.

## Configuring Cookies in Bruno

### Add Cookie

1. Go to cookies section (bottom-right corner).

<img src="https://mintcdn.com/bruno-a6972042/k_zr3I3gL1BrG0vM/images/screenshots/send-request/res-data-and-cookie/cookies/1-cookie-homepage.webp?fit=max&auto=format&n=k_zr3I3gL1BrG0vM&q=85&s=143dacd58302dffab048417c85c8a62e" alt="cookie-homepage" width="2472" height="1592" data-path="images/screenshots/send-request/res-data-and-cookie/cookies/1-cookie-homepage.webp" />

2. Click on **Add Cookie** button.

<img src="https://mintcdn.com/bruno-a6972042/k_zr3I3gL1BrG0vM/images/screenshots/send-request/res-data-and-cookie/cookies/2-add-cookie-btn.webp?fit=max&auto=format&n=k_zr3I3gL1BrG0vM&q=85&s=911c7b35b363114415c9bddf1824009d" alt="add-cookie-btn" width="2472" height="798" data-path="images/screenshots/send-request/res-data-and-cookie/cookies/2-add-cookie-btn.webp" />

3. Add the cookie attributes and select **Secure** or **HTTP Only** according to your preference.

<img src="https://mintcdn.com/bruno-a6972042/k_zr3I3gL1BrG0vM/images/screenshots/send-request/res-data-and-cookie/cookies/3-cookie-attributes.webp?fit=max&auto=format&n=k_zr3I3gL1BrG0vM&q=85&s=0f52f0db69b5797d5c59f9395c771f77" alt="cookie-attributes" width="2472" height="966" data-path="images/screenshots/send-request/res-data-and-cookie/cookies/3-cookie-attributes.webp" />

4. Click on **Save** button.

5. You can enable **Raw Edit** mode to quickly customize and make direct changes to your cookies.

<img src="https://mintcdn.com/bruno-a6972042/k_zr3I3gL1BrG0vM/images/screenshots/send-request/res-data-and-cookie/cookies/4-raw-edit.webp?fit=max&auto=format&n=k_zr3I3gL1BrG0vM&q=85&s=bed4cb05c3ec7ce4dbd98783b92f3080" alt="cookie-raw" width="2472" height="966" data-path="images/screenshots/send-request/res-data-and-cookie/cookies/4-raw-edit.webp" />

### Update Cookie

You can update and delete cookie(s) by clicking the icons next to it.

1. Click on (pencil icon) to update cookie.
2. Click on delete icon (red colour) to delete cookie.

<Warning>
  We restrict editing of values like Domain, Path, and Key once a cookie is
  created due to security concerns.
</Warning>

<img src="https://mintcdn.com/bruno-a6972042/k_zr3I3gL1BrG0vM/images/screenshots/send-request/res-data-and-cookie/cookies/6-delete-cookie.webp?fit=max&auto=format&n=k_zr3I3gL1BrG0vM&q=85&s=b35bc970109ab0b03abd49e1abd65cb6" alt="cookie-delete" width="2472" height="966" data-path="images/screenshots/send-request/res-data-and-cookie/cookies/6-delete-cookie.webp" />

To manage cookies programmatically, see the [Cookie Management](/testing/script/javascript-reference#cookie-management) section in the JavaScript API Reference.
