Apache-Keywords

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME
       Apache::Keywords - Store keywords as a personal profile in
       a cookie.

CONTENTS
       The package Apache::Keywords contains:

       Makefile.PL
       lib/Apache/Keywords.pm 
       README
       MANIFEST

PREREQUISITES
       You need Apache::Constants and Apache::Cookie to use
       Apache::Keywords.

INSTALLATION
       tar zxf Apache-Keywords-0.1.tar.gz
       perl Makefile.PL
       make 
       make install

SYNOPSIS
       In a dynamic mod_perl source-file:

           use Apache::Keywords;

           # Create a keywords object
           $k = new Apache::Keywords;

           # Set different parameters
           $k->name('PersonalProfile');
           $k->expires('+1M');
           $k->path("/");
           $k->domain('xxx.com');

           # Get parameters
           print $k->expires;
           print $k->path;
           ...

           # Add new keywords to the profile
           $k->new_keywords($r,"horse, dog");
           # Special version for Apache::ASP
           $k->new_keywords_asp($Request,"cars, motorcycles");

           # Return the content of the cookie profile
           $hashref = $k->profile($r);
           print $hashref->{'horse'};
           %hash = %$hashref;
           # Special version for Apache::ASP
           $k->profile_asp($Request);


       In a the .htaccess for apache static-files, e.g. .html-
       files:
           <Files ~ (\.html)>
               SetHandler perl-script
               PerlFixupHandler Apache::Keywords
               PerlSetVar KeywordsName "PersonalProfile"



17/Feb/2000            perl 5.005, patch 03                     1





lib::Apache::Keywords(3)ributed Perl Documentationhe::Keywords(3)


               PerlSetVar KeywordsExpires "+1M"
               PerlSetVar KeywordsPath "/"



( run in 1.731 second using v1.01-cache-2.11-cpan-995e09ba956 )