-------- Original Message --------
From: Juan Jose Natera Abreu <[EMAIL PROTECTED]>
To: Jeff <[EMAIL PROTECTED]>
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