[cgiapp] Reading a Cookie
stephen.carville at gmail.com
Thu Jul 24 18:43:28 EDT 2008
On Thu, Jul 24, 2008 at 2:24 PM, Flavio Poletti <flavio at polettix.it> wrote:
>> So how do I read the cookie back using CGI:Application? All the
>> tutorials seem to assume the cookie is just there. Maybe I'm
>> overlooking something.
> This is not actually related to CGI::Application, but to CGI.pm, whose
> documentation is at http://search.cpan.org/dist/CGI.pm/
> The short story is that you first get a reference to the CGI object like
> my $cgi = $self->query(); # see "query" method in CGI::Application
> then retrieve the cookie like this:
> my $cookie = $cgi->cookie('cookie_name');
> See CGI.pm documentation for more directions and hints.
Thank you very much.
More information about the cgiapp