You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
It looks like there is a bit confusion here. set is used to set cookie to client, so it only affects response header. get is used to get cookies that client sends to server. So if you use cookie:set and cookie:get in the same request, cookie:get will return the client cookie. Not the one you just set.
cookie = ck:new()
cookie:set({key = "aa", value = "vaa"})
cookie:set({key = "bb", value = "vbb"})
next time I using the cookie to using cookie:get("aa"), it return "vaa,", not just "vaa"
The text was updated successfully, but these errors were encountered: