CGI::Lite::Request::Cookie - Cookie objects for CGI::Lite::Request
%cookies = CGI::Lite::Cookie->fetch # fetch all cookies $cookies = CGI::Lite::Cookie->fetch # same but hash ref $cookie->name; # get $cookie->name('my_cookie'); # set @value = $cookie->value; # for multiple values $value = $cookie->value; # array ref or simple scalar $cookie->value($simple_scalar); $cookie->value([ "one", "2", "III" ]); # mutators (simple get and set) $cookie->expires; $cookie->path; $cookie->domain; $cookie->secure; $cookie->as_string; # returns the cookie formatted # for use in an HTTP header
This class is almost identical to the original CGI::Cookie, except in that it doesn't require the Cursed Gateway Interface (CGI.pm) to function, instead it uses only methods provided by CGI::Lite - a module which lives up to its name.
Richard Hundt <richard NO SPAM AT protea-systems.com>
Dr. Lincoln Stein and anybody who contributed to CGI::Cookie from which most of this code was stolen.
CGI::Lite, CGI::Lite::Request, CGI::Cookie
This library is free software and may be used under the same terms as Perl itself
To install CGI::Lite::Request, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Lite::Request
CPAN shell
perl -MCPAN -e shell install CGI::Lite::Request
For more information on module installation, please visit the detailed CPAN module installation guide.