>I'm hoping you missed this line: > my $cookie = APR::Request::Cookie->new($req, > name > => "foo", > value > => "bar", > domain > => "capricorn.com");
Yes, I do have that line. > # print a response header > printf "Set-Cookie: %s\n", $cookie->as_string; This line just prints the contents on to the browser. > I'd have to look the the $r->send_headers_xxx API my > memory is failing > me at the moment. I hope you mean $r->headers_out, if yes then i do have that line too, although it fails miserably. This is what i've got so far: my $req = $r->pool(); my $cookie = APR::Request::Cookie->new($req, name => "foo", value => "bar"); $cookie->path('/'); $cookie->domain('192.168.1.155'); $cookie->expires('+1d'); $r->headers_out->add('Set-Cookie'=>$cookie); This does not set the cookie whatsoever, i tried $r->err_headers_out... still no luck. What am I doing wrong? is there something very bovious i'm missing? Thanks again. Gokul P. Nair --- "Philip M. Gollucci" <[EMAIL PROTECTED]> wrote: > Gokul P. Nair wrote: > > >Thanks for the attachment. What i still don't > >understand though is that when i create the cookie > >using APR::Request::Cookie->new(...) how do i bake > it > >or in other words, how do i send it? > > > >Am i even approaching this in the right direction? > > > > > I'm hoping you missed this line: > > my $cookie = APR::Request::Cookie->new($req, > name > => "foo", > value > => "bar", > domain > => "capricorn.com"); > > # print a response header > printf "Set-Cookie: %s\n", $cookie->as_string; > > > I'd have to look the the $r->send_headers_xxx API my > memory is failing > me at the moment. > > > -- > END > --------------------------------------------------------- > What doesn't kill us can only make us stronger. > Nothing is impossible. > > Philip M. Gollucci ([EMAIL PROTECTED]) > 301.254.5198 > Consultant / http://p6m7g8.net/Resume/resume.shtml > Senior Developer / Liquidity Services, Inc. > http://www.liquidityservicesinc.com > http://www.liquidation.com > http://www.uksurplus.com > http://www.govliquidation.com > http://www.gowholesale.com > > > __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail