1.2.1321. Use Cookies

This code source uses cookies.

Cookie usage is spotted with the usage of setcookie(), setrawcookie() and header() with the ‘Set-Cookie’ header.

<?php

     header('Set-Cookie: '.$name.'='.$value.'; EXPIRES'.$date.';');

    // From the PHP Manual :
    setcookie('TestCookie3', $value, time()+3600, '/~rasmus/', 'example.com', 1);

?>

See also Cookies.

1.2.1321.1. Specs

Short name

Php/UseCookies

Rulesets

All, Appinfo, CE

Exakat since

0.10.6

PHP Version

All

Severity

Time To Fix

Precision

High

Features

cookie

Available in

Entreprise Edition, Community Edition, Exakat Cloud