Apache::AxKit::StyleChooser::Cookie - Choose stylesheets based on a browser cookie
AxAddPlugin Apache::AxKit::StyleChooser::Cookie
This module checks for the presence of a cookie named 'axkit_preferred_style' and sets the preferred style accordingly.
The name of the cookie can be changed by setting the variable AxStyleChooserCookieKey in your httpd.conf:
AxStyleChooserCookieKey
PerlSetVar AxStyleChooserCookieKey mystyle
Once set, this module will check for the presence of the cookie named 'mystyle' instead of the cookie named 'axkit_preferred_style'.
To use the module, simply add this module as an AxKit plugin that will be run before main AxKit processing is done.
See the AxStyleName AxKit configuration directive for more information on how to setup named style.
Kip Hampton, kip@hampton.ws
AxKit.
To install AxKit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AxKit
CPAN shell
perl -MCPAN -e shell install AxKit
For more information on module installation, please visit the detailed CPAN module installation guide.