CGI::Lite::Request::Cookie - Cookie objects for CGI::Lite::Request


NAME

CGI::Lite::Request::Cookie - Cookie objects for CGI::Lite::Request


SYNOPSIS

  %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


DESCRIPTION

This class is almost identical to the original the CGI::Cookie manpage, except in that it doesn't require the Cursed Gateway Interface (CGI.pm) to function, instead it uses only methods provided by the CGI::Lite manpage - a module which lives up to its name.


AUTHOR

Richard Hundt <richard NO SPAM AT protea-systems.com>


ACKNOWLEDGEMENTS

Dr. Lincoln Stein and anybody who contributed to the CGI::Cookie manpage from which most of this code was stolen.


SEE ALSO

the CGI::Lite manpage, the CGI::Lite::Request manpage, the CGI::Cookie manpage


LICENCE

This library is free software and may be used under the same terms as Perl itself