perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff <modp...@aquabolt.com>
Subject Re: Apache2::Cookies - getting all names
Date Tue, 27 Dec 2005 09:58:48 GMT
-------- Original Message --------
From: Juan Jose Natera Abreu <juanjose@lunarpages.com>
To: Jeff <modperl@aquabolt.com>
CC: mod_perl List <modperl@perl.apache.org>
Subject: Re:Apache2::Cookies - getting all names
Date: 26/12/2005 19:35

> Hi,
> 
> How are you creating the cookies?
> 
> Apache2::Cookie has the same interface as CGI pm (a method that takes
> named parameters).
> 
>>When I do this, for the following cookies:
>>   c1 => 'v1',
>>   c2 => 'v2',
>>
> 
> Try this instead:
> 
> $c1 = Apache2::Cookie->new($r, -name  => 'c1', -value => 'v1');
> $c2 = Apache2::Cookie->new($r, -name  => 'c2', -value => 'v2');
> 

Thanks - but my question was not about how to create cookies.

My question was:-

Given:

   my $jar   =  Apache2::Cookie::Jar->new( $r ); # get the jar
   my @names = $jar->cookies();                  # all cookie names

Why does @names contain values that are not cookie names?

I am guessing that the docs are wrong on this one.

Regards,
Jeff



Mime
View raw message