httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian <br...@photoresearchers.com>
Subject Re: APR::Request API for playing with cookies
Date Tue, 24 May 2005 15:59:33 GMT
Simon Perreault wrote:
> On Tuesday 24 May 2005 10:29, Joe Schaefer wrote:
> 
>>  $jar->cookie_class("My::Class");
>>  my $cookie = $jar->{CookieID};
> 
> 
> There is no default class? My first impression is that this is strange...
> 
> Also, I can't do this, right?
> 
> $req->jar->cookie_class('My::Class');
> 
> This seems to not have any effect.
> 

If 'cookie_class' were to return a reference to jar (does it?), it would seem 
plausible to write:

my $cookie = $req->jar->cookie_class('My::Class')->{CookieID};

...no?

--
Brian Carp

Mime
View raw message