# Cookies 🍪

## 🔗 Links

> [Demo](https://digitaleyedemo.bubbleapps.io/version-test/cookies) | [Editor](https://bubble.io/page?name=cookies\&id=digitaleyedemo\&tab=tabs-1)

> [Plugin page](https://bubble.io/plugin/cookies-1611605211880x216983365361336300)

> [Forum](https://forum.bubble.io/t/plugin-announcement-cookies/136052)

## ℹ️ Introduction

Cookies allow you to store user's data without using Bubble's database. And this plugin makes the cookies management very simple.&#x20;

Use cases: Save user preferences for language, dark/light mode, currency, country, visit numbers, last visit date, any stats etc

## 🔥 Features

* Read a cookie by name
* Delete a cookie by name
* Add a cookie: name + value + expiration (in days)
* Read all cookies

## 📚 Documentation

Available actions:

* Read a Cookie by name
* Write a Cookie: define a name, value and expiration (in days)
* Delete a Cookie by name
* Read all Cookies

Available states:

* Cookie: available after "Read a Cookie" action
* All Cookies: available after "Read all Cookies" action

Plugin is very easy to use. Check our demo for a detailed example.


---

# 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://bubble.digital-bird.com/plugins/cookies.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.
