March 2003
Intermediate to advanced
312 pages
7h 12m
English
When a Web server adds a Set-Cookie response header to the HTTP response, it includes additional information about the access restrictions for the cookie. To further discuss this point, this section introduces two example uses of the Set-Cookie response header:
Set-Cookie: first_name=chris; domain=.httphandbook.org;
expires=Tue, 21 May 2002 12:34:56 GMT; path=/; secure
Set-Cookie: first_name=chris In the first example, the server is asking the Web client to store a cookie called first_name with a value of chris. The rest of the attributes provide additional information about the access restrictions to be imposed on this cookie. Breaking down each additional attribute (the list of attributes is delimited ...
Read now
Unlock full access