tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pilho Kim <ph...@math.soongsil.ac.kr>
Subject Re: Cookie bug (3.2.b2) reproducible result.
Date Sun, 20 Aug 2000 02:32:23 GMT
Hi Ys,

I understand what you mean.
I regard that the cookie problem of Tomcat would be
related to the Cache-Control header, an HTTP/1.1 header.

I recommend that you read my article, subjected by
"Cache-control patch of Tomcat 3.x"


Thanks,

Kim


On Fri, 18 Aug 2000, yhs@mimic.onesourcecorp.com wrote:

> 
> 
> Hi guys,
>    i've finally managed to get the cookie bug to reproduce
> consistantly. It works like this :
> I have two servers with identical servlets on both doing load balancing
> (1 JVM per server). For this example consider A1 to be servlet A running
> on server 1 and so on, B2 to be servlet B on server 2 etc.
> 
> A1 -> set cookie to (say) abc=20
> B2 -> reads from the cookie. gets abc=20. correct.
> C2 -> deletes the cookie (setMaxAge to 0)
> C2 -> sets a new cookie abc=30
> C2 -> reads from the cookie. gets abc=30. correct.
> B1 -> reads from the cookie. gets abc=20 <---------------- bug.
> B2 -> reads form the cookie. gets abc=30. correct.
> 
> I'm using mod_jserv.so to do the load balancing. using netscape 4.73 to
> access the servlets and tomcat 3.2b2 with blackdown JDK 1.2.2FCS on
> redhat linux 6.2 kernel 2.2.16-3.
> 
> I cant offer any insight into whats causing it...AFAIK this behaviour was
> not present in 3.1 and changing the JDK doesnt help. it only occurs with
> load balancing and not with the regular non load balanced operation. It
> doesnt affect me any more since i've worked around it and dont care
> either way....but it shouldnt really be present anyway. 
> Any comments/insights ?
> -Ys-
> yhs@mimic.onesourcecorp.com
> 
> P.S. i'd recommend anyone using cookies to treat em as fixed
> values as cookie deleting/value changing is IMHO not reliable 100% of the
> time in tomcat. Setting cooklies works 100% of the time.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 


Mime
View raw message