----- Original Message -----
From: "princepawn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 01, 2001 4:52 PM
Subject: Apache::Request cookie handling methods?



> p.209 of the Eagle Book states that Apache::Request has some
> experimental cookie-handling functions.

I don't believe they are experimental anymore. The Eagle book is growing a
little oiutdated concerning some of the newer features of mod_perl. It's
always good to check the mod_perl guide ( http://perl.apache.org/guide/ ),
or other documentation on mod_perl too.

> However, neither perldoc
> Apache or perldoc Apache::Request has the word cookie anywhere in
> their body.
>
> CGI::cookie() is wonderful, but I feel funny using CGI.pm and
> CGI::Cookie under mod_perl and would much rather use Apache API
> methods.

The cookie handlng functions from the Apache API come from the
Apache::Cookie module. It has the same interface as CGI::Cookie, except that
it requires you to pass it the request record too. It comes with the
Apache::Request distribution, and is documented through `perldoc
Apache::Cookie`.

Per Einar Ellefsen

Reply via email to