# Cookie

*noun*

say it: **“KUK-ee”** **/ˈkʊki/**

A small piece of data a website asks the browser to keep and send back with every request to that site.

## What is **Cookie**?

A **cookie** is a small piece of data the server asks the browser to store and send back with every later request to that site. `HttpOnly` cookies can't be read by JavaScript, which protects session tokens.

```text
Set-Cookie: session=abc123; HttpOnly; Secure; SameSite=Lax; Path=/
```

## In a sentence

- “After signing in, the site stores a **cookie** so I stay signed in on every page.”

Level: Journeyman · [More REST API terms at this level](https://www.ask-codey.com/glossary?category=rest-api&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/cookie
