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([ "one", "2", "III" ]);
# mutators (simple get and set)
$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.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.