how to read cookies in php code example
Example 1: get a cookie in php
<?php
echo 'Hello ' . htmlspecialchars($_COOKIE["name"]) . '!';
?>
Example 2: retrieving a cookie in php
$cookiename = $_COOKIE['COOKIE ID']
Example 3: cookies php syntax
setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");