Cookie Playground Documentation

Welcome to the Cookie Playground documentation! This is an educational resource for understanding how cookies work, especially in marketing and advertising contexts.

Documentation Structure

The documentation is organized into focused topics that build upon each other:

  1. Testing Cookie Scenarios - 🎯 START HERE Visual guide with step-by-step testing procedures and Mermaid diagrams
  2. Cookie Fundamentals - Learn what cookies are and how they work
  3. Cookie Attributes - Deep dive into cookie attributes (SameSite, Secure, HttpOnly, Domain, Path)
  4. First-Party vs Third-Party - Understand cookie classification
  5. Cross-Domain Behavior - How cookies behave across domains and subdomains
  6. Parent-Subdomain Cookies - Specific guide on parent domain and subdomain cookie access
  7. HTTP Headers - Cookie and Set-Cookie header details
  8. Marketing Use Cases - Pixel syncing, tracking, and advertising scenarios
  9. Using the Playground - How to use this infrastructure
  10. Manual Testing Guide - Step-by-step testing procedures
  11. HTTP Inspection - How to read and understand HTTP requests/responses
  12. Browser Behaviors - Browser-specific differences and privacy features
  13. Troubleshooting - Common issues and solutions
  14. Redirect Cookie Behavior - How cookies work with HTTP redirects
  15. Domain Migration for Tracker Mergers - Strategies for migrating tracking domains and preserving user identity
  16. Server Behavior and Cookie Scenarios - Detailed explanation of server behavior, when cookies are added, and which cookies are set
  17. Same-Site vs Cross-Site Requests - Terminology and behavior of same-site requests, cross-site GET requests, and cross-site POST requests
  18. SameSite=Lax - Comprehensive guide to SameSite=Lax: default behavior, security implications, and use cases
  19. SameSite Visual Guide - Visual flowcharts and decision trees for all SameSite values (None, Lax, Strict)

Quick Start

  1. Deploy the infrastructure using Terraform (see main README.md)
  2. Visit one of the playground domains:
  3. Start with the Cookie Fundamentals guide
  4. Use the interactive playground pages to experiment with different cookie scenarios

Learning Path

Beginner Path:

  1. Cookie Fundamentals
  2. Cookie Attributes
  3. Using the Playground
  4. Manual Testing Guide

Intermediate Path:

  1. First-Party vs Third-Party
  2. Cross-Domain Behavior
  3. Parent-Subdomain Cookies
  4. HTTP Headers
  5. Same-Site vs Cross-Site Requests
  6. SameSite=Lax
  7. SameSite Visual Guide

Advanced Path:

  1. Marketing Use Cases
  2. HTTP Inspection
  3. Browser Behaviors
  4. Troubleshooting

Additional Resources