php update cookie code example
Example 1: php set cookie
<?php
$name = 'COOKIE_NAME';
$value = 'VALUE';
$expireTime = strtotime('+1 years');
$path = '/';
setcookie($name,$value,$expireTime,$path);
Example 2: retrieving a cookie in php
$cookiename = $_COOKIE['COOKIE ID']