Is anyone capable of explaining ?

Oleg Broytmann phd at
Wed Feb 6 07:28:03 EST 2002

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              phd at
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-list mailing list