Evascene_void
Need URGENT help regarding useCookie issue
SOLVED
Answer:
To retain expiry time then
const testCookie = useCookie("test", {
expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 30),
});
testCookie.value = newValue
And then update the cookie value then expiration date is maintained. https://www.reddit.com/r/Nuxt/s/0sYPyfwloq
And then update the cookie value then expiration date is maintained. https://www.reddit.com/r/Nuxt/s/0sYPyfwloq
8 replies