HTTP variables
$cookie_* variable family (HTTP)
Extract a named incoming cookie, such as $cookie_theme. A cookie is client-controlled and may carry private data; use synthetic preferences only. The asterisk represents a name suffix, not literal configuration syntax. Version: Introduction not established. OSS documentation; verify build. No positional directive arguments. Example is a partial configuration fragment for a disposable synthetic lab; not a production logging policy.
Formal Syntax & Structure
nginx syntaxnginx
$cookie_*Working Example
Example Snippetnginx
# Partial http-context example: map a synthetic value to a presence flag, never log the raw value.map $cookie_theme $lab_present { "" 0; default 1;}