IdCookie has some important little COOKIE Problem with http.(revision 4198)

Giganews Newsgroups
Subject: IdCookie has some important little COOKIE Problem with http.(revision 4198)
Posted by:  tubame (nospam@jp)
Date: Wed, 05 May 2010

BUG[AddServerCookie] OVERRIDE SAME COOKIE NAME.

  Same Cookie name is overridden.
  at least, it needs to save each domains; (cause: TIdCookieDomainList
is removed)

example cookie value
  Set-Cookie: Name1=Value1; domain=example1.com
  Set-Cookie: Name1=Value1; domain=example2.com

example cookie value
  Set-Cookie: TestCookie=SameName1; path=/indy_cookie_test/1/
  Set-Cookie: TestCookie=SameName2; path=/indy_cookie_test/2/

many browser support it. Firefox , IE store both value.

---------------------------------------------------------

BUG[TIdCookieManager] CAN NOT ACCEPT START WITH dot DOMAIN
  sometimes several server send cookie with DOMAIN like domain=.example.com

example cookie value
  Set-Cookie: TestCookie=1; path=/; domain=.example.com

many browser support domain=.example.com

---------------------------------------------------------

compatibility problem[Lib/Protocols/IdCookie.pas] sometimes several
server can not parce Cookie correctry.

Headers.AddValue('Cookie', LCookie.ClientCookie); {Do not Localize}

Ruby web server is OK. But php web server cause problem.
This is php problem. but php server is used by many web site.

single Cookie header is OK.

GET OR POST METHOD(Client): request Cookie header
  Indy 10_5_6 uses multi line.
    Cookie: Name1=Value1
    Cookie: Name2=Value2
    Cookie: Name3=Value3
  IE8, Firfox , Chrome and Previous Indy use single line.
    Cookie: Name1=Value1; Name2=Value2; Name3=Value3

Replies