# Cookies

An HTTP cookie (also called web cookie, Internet cookie, browser cookie, or simply cookie) is a small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing.

# SameSite Cookies

[web.dev has a very insightful article on SameSite cookies](https://web.dev/samesite-cookies-explained/). Read it to understand how they work.

<table border="1" id="bkmrk-value-intended-use-e" style="width: 100%; border-collapse: collapse;"><thead><tr style="height: 29px;"><td class="align-left" style="width: 33.3333%; height: 29px;">Value</td><td class="align-left" style="width: 33.3333%; height: 29px;">Intended Use</td><td class="align-left" style="width: 33.3333%; height: 29px;">Example</td></tr></thead><tbody><tr style="height: 46px;"><td style="width: 33.3333%; height: 46px;">SameSite=Lax</td><td style="width: 33.3333%; height: 46px;">Functionality affecting the display of the site. Includes first request.</td><td style="width: 33.3333%; height: 46px;">Theme switcher</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">SameSite=Strict</td><td style="width: 33.3333%; height: 29px;">Relating to actions the user initiates. From second request.</td><td style="width: 33.3333%; height: 29px;">Password change</td></tr><tr style="height: 29px;"><td style="width: 33.3333%; height: 29px;">SameSite=None</td><td style="width: 33.3333%; height: 29px;">Functionality affecting the embedding of the site content.  
Cookies with SameSite=None must also specify Secure, meaning they require a secure context.</td><td style="width: 33.3333%; height: 29px;">Watch it later button</td></tr><tr><td style="width: 33.3333%;">-</td><td style="width: 33.3333%;">Legacy.  
Cookies without a SameSite attribute will be treated as SameSite=Lax.  
  
</td><td style="width: 33.3333%;">-</td></tr></tbody></table>