1.2.1330. 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.1330.1. Connex PHP features¶
1.2.1330.1.1. Specs¶
Short name |
Php/UseCookies |
Rulesets |
|
Exakat since |
0.10.6 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
High |
Available in |