---
name: "Apache::AxKit::StyleChooser::Cookie"
section: "3pm"
platform: "linux"
package: "axkit"
version: "1.6.2-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/Apache::AxKit::StyleChooser::Cookie"
---

# Apache::AxKit::StyleChooser::Cookie(3pm)

Choose stylesheets based on a browser cookie

## NAME

Apache::AxKit::StyleChooser::Cookie - Choose stylesheets based on a browser cookie

## SYNOPSIS

```
    AxAddPlugin Apache::AxKit::StyleChooser::Cookie
```

## DESCRIPTION

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:

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

```
  AxAddPlugin Apache::AxKit::StyleChooser::Cookie
```

See the **AxStyleName** AxKit configuration directive for more information on how to setup named style.

## AUTHOR

Kip Hampton, kip@hampton.ws

## SEE ALSO

AxKit.
