> For the complete documentation index, see [llms.txt](https://anticode.gitbook.io/templates/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anticode.gitbook.io/templates/plugins/bubble-browser-cookies-plugin.md).

# Bubble - Browser Cookies Plugin

### Overview

This plugin allows you to create, read and delete browser cookies within your app. You can save certain information for a user, without him/her being logged in. For example if your app has a dark mode, you can specify the users preference as a cookie. This plugin allows you to not use the "Current User" within a workflow. This might be useful if you want to set a cookie without really affecting the current user if he/she is logged in.You also have the ability to set the expiration date of the cookie.

For a demo of this plugin please visit:<https://anticodeplugin.bubbleapps.io/cookie>

Icons made by <https://www.flaticon.com/authors/those-icons> from <https://www.flaticon.com/>

### Instructions

Add the cookies element to your application. You can use the "Create Cookie" Action within your element workflows. You can read cookie values by triggering the "Read cookie" action within your workflows and entering the name of the cookie you want to read. You will then have access to the cookie value via the state of the cookie element. You can also delete a cookie by triggering the "delete cookie" action within a workflow and entering the name of the cookie you want to delete.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://anticode.gitbook.io/templates/plugins/bubble-browser-cookies-plugin.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
