You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Jozef Kosoru <zy...@uid0.sk> on 2004/11/21 08:30:36 UTC

Re: Apache::Cookie->new/bake broken - mod_perl 2

Hi,

On Wed, Nov 10, 2004 at 13:05:43 -0800, Dan Sully wrote:
> I'm running into an interesting problem, using Apache::SessionManager.
> 
> My first request to the webpage successfully generates a cookie, and I
> see it in my browser's jar. The next response though, the
> Apache::Cookie->fetch() gets a truncated cookie (md5 sum), and can't
> tie to the previous session and creates a new one. Now, you may think
> this is a problem with fetching, and not baking.
> 
> But if I make Apache::SessionManager use CGI::Cookie for the baking, and
> continue to use Apache::Cookie for the fetch, everything works fine. A
> debug print ->as_string() of the Apache::Cookie->new/bake shows valid data.
> 
> I'm going to debug this further - but if anyone has ideas, it'd be
> most appreciated.
> 
> This is Apache 2.0.52, mod_perl 1.99_17, libapreq2-2.04-dev (latest).

I would like to point out, that I have observed the same problem with
apreq2 Apache::Cookie. Sometimes browser gets a truncated cookie and
sometimes even a garbage cookie data.

My configuration: Apache 2.0.51, mod_perl 1.99_1, libapreq2-2.04-dev.

Combination Apache::SessionManager + CGI::Cookie works fine.

Regards,
	Jozef

-- 
jozef kosoru
http://zyzstar.kosoru.com

Re: Apache::Cookie->new/bake broken - mod_perl 2

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Jozef Kosoru <zy...@uid0.sk> writes:

[...]

> I would like to point out, that I have observed the
> same problem with apreq2 Apache::Cookie. Sometimes browser gets a
> truncated cookie and sometimes even a garbage cookie data.

This bug should be fixed in the current 
svn trunk, thanks to Bojan's recent patch.

-- 
Joe Schaefer


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html