Re: APR::* confusion in setting and retrieving cookies through libapreq2

2005-06-23 Thread Gokul P. Nair
Thanks for the response Malcom. This is what i have: my $req = $r->pool(); my $cookie = APR::Request::Cookie->new ($req, name => "test", value => { product_id => $product_id, qty => $qty }, path => '/', domain => "192.168.1.155",

Re: APR::* confusion in setting and retrieving cookies through libapreq2

2005-06-23 Thread Malcolm J Harwood
On Thursday 23 June 2005 12:29 pm, Gokul P. Nair wrote: > Also $req needs to be an object of type APR::Pool and > in the documentation for APR::Pool it is suggested > that it is good to use a request pool for these short > scoped requests. So would $req be created like this ? > $req = APR::Request

APR::* confusion in setting and retrieving cookies through libapreq2

2005-06-23 Thread Gokul P. Nair
Hello, I'm trying two simple functions i.e. to set a cookie and retrieve it. I'm using Apache2, mod_perl2 & libapreq2-2.05 to do this. I read in the libapreq2 mail archives that using APR::* is recommended over the Apache2::Cookie modules and that there was debate over dumping the Apache2::* mod