httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Houston <>
Subject Re: Apache2::Cookie::Jar->cookies($key) doesn't work anymore?
Date Tue, 24 May 2005 20:16:35 GMT
At the moment, I'm using this to get at the cookie contents:

%cookies = Apache2::Cookie->fetch($r);
$value = $cookies{'prefs'}->value;
if ($value) { %cv = Apache2::Cookie->thaw($value); }

where 'prefs' is the cookie name. This works in 2.05 fine, but I'm not
convinced that it's 

(a) the most efficient method
(b) the most elegant method
(c) the most forward-compatible method

Although Simon's method probably wins on point (b), how do these
approaches compare for (a) and (c), or is there a better way entirely?


On Tue, May 24, 2005 at 01:20:22PM -0400, Joe Schaefer wrote:
> Simon Perreault <> writes:
> > Re-hi,
> >
> > I've come to realize that I, as a user of libapreq, shouldn't be
> > playing with APR::* classes, but with the Apache2::* classes instead.
> No, you shouldn't do that, because the APR::* classes will be the
> ones we recommend nowadays.  We debated whether to chuck the Apache2::*
> classes entirely, but we left them in for back-compat reasons.
> It doesn't surprise me that we broke lots of stuff in the 
> Apache2::* APIs with 2.05-dev, but we consider most of those 
> breakages as bugs to fix.
> > I'll try to ask my question in as general a way as possible so as not
> > to get into things that are way over my head.
> >
> > Apache2::Cookie::Jar->cookies($key) doesn't seem to work anymore in 2.05.
> Nope, and that's another bug I suppose (although I
> don't think cookies() was ever intended to be a class
> method).
> -- 
> Joe Schaefer

Openstrike - improving business through open source or call 07092 020107

View raw message