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 was archived by the owner on Jun 30, 2021. It is now read-only.
The Set-Cookie HTTP response header is used to send cookies from the server to the user agent, so the user agent can send them back to the server later.
The only way to set headers in served is to use the function set_header() from the request object, like so
res.set_header("Set-Cookie","foo=1");
this way, when the client get the response from the request, it gets the Cookie "foo" with a value of 1
The problem is that, in a specific request, the server may set two or more cookies, like foo=1 and bar=2,