Skip to content
://alxndr.blog — Alexander's blog

2017-08-07 ~ 1 min read

hapi — unset a cookie

#notes to self#documentation#javascript#HapiJS


…because the documentation for Hapi is awful:

If you’re trying to reply().unstate("cookiename") and it Just Won’t Work, look for how you set that cookie. If you used reply().state("cookiename", value, cookieOptions), you need to include those cookieOptions when you try to unset: reply().unstate("cookiename", cookieOptions) should work.


Alexander

Alexander — a.k.a. alxndr or drwxrxrx