how acces a cookie php code example
Example 1: get a cookie in php
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
Example 2: php cookie
setcookie ('name', 'value', $expiresOn, $path, $domain, $secure, $httponly)
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
setcookie ('name', 'value', $expiresOn, $path, $domain, $secure, $httponly)