<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Apache2::WebApp::Plugin::Cookie - Plugin providing HTTP cookie methods

SYNOPSIS
      my $obj = $c-&gt;plugin('Cookie')-&gt;method( ... );     # Apache2::WebApp::Plugin::Cookie-&gt;method()

        or

      $c-&gt;plugin('Cookie')-&gt;method( ... );

DESCRIPTION
    Common methods for manipulating web browser cookies.

PREREQUISITES
    This package is part of a larger distribution and was NOT intended to be
    used directly. In order for this plugin to work properly, the following
    packages must be installed:

      Apache2::WebApp
      Apache2::WebApp::Plugin::Filters
      Params::Validate

INSTALLATION
    From source:

      $ tar xfz Apache2-WebApp-Plugin-Cookie-0.X.X.tar.gz
      $ perl MakeFile.PL PREFIX=~/path/to/custom/dir LIB=~/path/to/custom/lib
      $ make
      $ make test     &lt;--- Make sure you do this before contacting me
      $ make install

    Perl one liner using CPAN.pm:

      perl -MCPAN -e 'install Apache2::WebApp::Plugin::Cookie'

    Use of CPAN.pm in interactive mode:

      $&gt; perl -MCPAN -e shell
      cpan&gt; install Apache2::WebApp::Plugin::Cookie
      cpan&gt; quit

    Just like the manual installation of Perl modules, the user may need
    root access during this process to insure write permission is allowed
    within the installation directory.

CONFIGURATION
    In order to set a browser cookie, you need to specify a valid hostname
    in your *webapp.conf*

      [apache]
      domain = www.domain.com

OBJECT METHODS
  set
    Set a new browser cookie.

      $c-&gt;plugin('Cookie')-&gt;set( $c, {
            name    =&gt; 'foo',
            value   =&gt; 'bar',
            expires =&gt; '24h',
            secure  =&gt; 0,
        });

  get
    Return the browser cookie value.

      my $result = $c-&gt;plugin('Cookie')-&gt;get($name);

      # bar is value of $result

  delete
    Delete a browser cookie by name.

      $c-&gt;plugin('Cookie')-&gt;delete( \%controller, $name );

SEE ALSO
    Apache2::WebApp, Apache2::WebApp::Plugin, Apache2::Cookie

AUTHOR
    Marc S. Brooks, &lt;mbrooks@cpan.org&gt; - &lt;http://mbrooks.info&gt;

COPYRIGHT
    This program is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

    See &lt;http://www.perl.com/perl/misc/Artistic.html&gt;

</pre></body></html>