Cookies are sent to the client by the server in an HTTP response and are stored in the client (user’s browser).
The server sets the cookie in the HTTP response header named Set-Cookie. A cookie is made of a key /value pair, plus other optional attributes, which we’ll look at later.