# useCookie

> This example shows how to use the useCookie API to persist small amounts of data that both client and server can use.

<read-more to="/docs/api/composables/use-cookie">



</read-more>

<sandbox branch="main" dir="examples/advanced/use-cookie" file="app.vue" repo="nuxt/examples">



</sandbox>
