N01R
N01R
HHono
Created by N01R on 4/20/2024 in #help
Cookies doesn't process
When I try to run in my middleware the following
setCookie(c, 'test', 'res', { maxAge: 60 * 60 * 24 * 7, httpOnly: true })
console.log(getCookie(c, 'test'));
setCookie(c, 'test', 'res', { maxAge: 60 * 60 * 24 * 7, httpOnly: true })
console.log(getCookie(c, 'test'));
the result I get is undefined, then randomly after a while when I rerun it shows the cookie, but the cookie never allowed to be deleted or changed and always stays the same.
3 replies