cloudflare / lua-resty-cookie

Lua library for HTTP cookie manipulations for OpenResty/ngx_lua
347 stars 160 forks source link

Delete a cookie? #56

Open gcleaves opened 1 year ago

gcleaves commented 1 year ago

Hello. Is it possible to completely delete a cookie?

I've tried cookie:set({key = "jwt",value = nil}) but that does nothing. cookie:set({key = "jwt",value = ""}) does succeed in setting the cookie value to empty, but my goal is to delete the cookie completely.

Thanks!