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

[prev] [thread] [next] [Date index for 2004/11/11]

From: Dan Sully
Subject: Re: Apache::Cookie->new/bake broken - mod_perl 2
Date: 18:44 on 11 Nov 2004
* Joe Schaefer <joe+gmane@xxxxxxxxxx.xxx> shaped the electrons to say...

>> 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.
>
>What is the length of the session cookie you're baking?  Set-Cookie
>headers aren't supposed to exceed 4KB.

Quite under 4k - it's just a 32bit MD5 hash from Apache::Session::Generate::MD5

>If that's not the problem, do you notice any difference in the
>->as_string() outputs for Apache::Cookie versus CGI::Cookie?

No. Which confuses me all the more.

-D
        -- 
        bacon happens.

-- 
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

Apache::Cookie->new/bake broken - mod_perl 2
Dan Sully 21:05 on 10 Nov 2004

Re: Apache::Cookie->new/bake broken - mod_perl 2
Arshavir Grigorian 21:10 on 10 Nov 2004

Re: Apache::Cookie->new/bake broken - mod_perl 2
Joe Schaefer 16:06 on 11 Nov 2004

Re: Apache::Cookie->new/bake broken - mod_perl 2
Dan Sully 18:44 on 11 Nov 2004

Re: Apache::Cookie->new/bake broken - mod_perl 2
Jozef Kosoru 07:30 on 21 Nov 2004

Re: Apache::Cookie->new/bake broken - mod_perl 2
Joe Schaefer 16:38 on 21 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52