Richard Hundt > CGI-Lite-Request > CGI::Lite::Request::Cookie

Download:
CGI-Lite-Request-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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 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.

AUTHOR ^

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

ACKNOWLEDGEMENTS ^

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

SEE ALSO ^

CGI::Lite, CGI::Lite::Request, CGI::Cookie

LICENCE ^

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

syntax highlighting: