[Tutor] Re: Is anyone capable of explaining ?

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Wed, 6 Feb 2002 15:28:03 +0300

On Wed, Feb 06, 2002 at 07:16:47AM -0500, Scherer, Bill wrote:
> > 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.

   This is true only partially. If you omit "domain" part of the cookie the
browaser will store current server's domain.

> The template http cookie header:
> Set-Cookie: name=value; expires=date; path=pathname; domain=domainname
                                                     this is not neccessary

     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.