hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: Duplicated cookie bug?
Date Sun, 20 Apr 2003 12:37:49 GMT
Tom,

A little more information would be helpful.  In particular the full 
wire log of the headers for both the initial request and the resulting 
redirection would be good.

Only one cookie with the same name/path/domain can exist within each 
instance of HttpState.  Since both name and path seem to be the same in 
this case I would guess that the domains are different.  That would 
lead me to wonder why cookies with different domain values are being 
sent to one server.  A more complete wire log should be able to clear 
this up.

Thanks,

Mike

On Saturday, April 19, 2003, at 05:41 PM, Tom Samplonius wrote:

>
>   It seems that if redirect following is enabled, a request is 
> redirected,
> cookies are duplicated on the followup request:
>
> 2003/04/19 16:20:54:107 PDT [DEBUG] wire - ->> "Cookie: $Version=0;
> ASPSESSIONIDQQGQGOQK=FCCPFHHBOFMALJCGMEFKOPKC; $Path=/[\r][\n]"
> 2003/04/19 16:20:54:107 PDT [DEBUG] wire - ->> "Cookie: $Version=0;
> ASPSESSIONIDQQGQGOQK=FCCPFHHBOFMALJCGMEFKOPKC; $Path=/[\r][\n]"
> 2003/04/19 16:20:54:127 PDT [DEBUG] wire - ->> "[\r][\n]"
>
>
>   I guess the cookie is added to the request object for the first 
> request,
> and when the request is redirected, the cookie is added to the request
> object again and re-sent.
>
>
> Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org
>


Mime
View raw message