Why is `cookies()` not available in client components?
Answered
White-tailed Tropicbird posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
White-tailed TropicbirdOP
NextJS 13 added the new
Am I missing something or should I just use packages like
cookies()
function so you can read user cookies server-side, but afaik there's no native way of setting the cookies client side (?)Am I missing something or should I just use packages like
cookies-next
to set cookies client side?Answered by joulev
Am I missing something or should I just use packages like cookies-next to set cookies client side?yes
4 Replies
![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
Am I missing something or should I just use packages like cookies-next to set cookies client side?yes
Answer
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
White-tailed TropicbirdOP
yes, as in I should use
cookies-next
?![Avatar](https://cdn.discordapp.com/avatars/484037068239142956/44415017de6fed2ccd5d44b4b2051ac0.webp?size=256)
joulev
yes
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
White-tailed TropicbirdOP
Okay thanks!