Thomas Bolioli wrote:
> I am using practical mod_perl (good book stas) book to come back up to
> speed on mp after being away from perl and apache web development for a
> few years. I am developing something new in mp2 and I am trying to set
> cookies. The book's examples use Apache::Cookie and I tried to install
> Apache::Cookie on my RH9 system and it was looking for mp1.

you need Apache::Cookie for mod_perl 2.0.

see the download section of

http://httpd.apache.org/apreq/

you're looking for

libapreq2-2.02_02-dev.tar.gz


> All of the
> MP1->MP2 migration docs fail to mention anything about this. I found
> this thread from a few weeks ago
> (http://aspn.activestate.com/ASPN/Mail/Message/modperl/1923482) but it
> is more specific than my issue. What is the best way to set cookies in
> mp2? Is it to use the methods detailed in response to that post or is
> there something I have missed.

you can also use CGI::Cookie.  see the CGI::Cookie docs for mod_perl
specific examples - the only difference is that you will want to use
$r->headers_out->set() instead of $r->header_out()

HTH

--Geoff


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to