[Tutor] Re: Is anyone capable of explaining ?
Scherer, Bill
Bill.Scherer@VerizonWireless.com
Wed, 6 Feb 2002 07:16:47 -0500 (EST)
On Tue, 5 Feb 2002, A wrote:
>
> Can anybody please answer the following question?
>
> Question: How does web browser know what cookies should be
> sent to server as a response?
The browser determines which cookies to include with a request by
comparing the domain of the server it is about to contact with
the domain of the cookies. I didn't see any domain in the
cookies you are setting; there should be one.
The template http cookie header:
Set-Cookie: name=value; expires=date; path=pathname; domain=domainname
See:
http://www.webreference.com/js/column8/http.html
--
Bill.Scherer at Verizon Wireless
RHCE 807101044903581