Cookie Store
Checking compatibility...
Modern asynchronous API for managing cookies. Perfect for handling cookies without blocking the event loop, with better error handling and service worker support.
This API is relatively new and may not be supported in all browsers. Check the console for feature detection messages.
Basic Usage
This example shows how to view all your cookies, create a new cookie that expires on a specific date, and find a particular cookie by its name.
=
=
=
=
=
=
Output
Click Run to see output...
Advanced Options
This example demonstrates how to create secure cookies with specific domains and paths, set privacy options like SameSite, and get notified when cookies change.
=
=
=
=
=
=
Output
Click Run to see output...
Utility Functions
This example shows how to create simple helper functions that make working with cookies easier by handling common tasks with sensible defaults.
=
=
=
=
=
=
Output
Click Run to see output...