# 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: 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://anticode.gitbook.io/templates/plugins/bubble-browser-cookies-plugin.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.
