1.2.244. Cookies Variables

Cookies names, used across the application.

<?php

if (isset($_COOKIE['myCookie'])) {
    // Usual method for reading and setting cookies
    $_COOKIE['myCookie']++;
}

// Usual method for writing cookies
setcookie('myCookie', $value);

?>

See also setcookie.

1.2.244.1. Specs

Short name

Php/CookiesVariables

Rulesets

All, Changed Behavior, Inventory

Exakat since

0.12.16

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

cookie

Available in

Entreprise Edition, Exakat Cloud