store variable in cookie php code example
Example 1: php cookie
setcookie ('name', 'value', $expiresOn, $path, $domain, $secure, $httponly)
Example 2: cookies php syntax
setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");
setcookie ('name', 'value', $expiresOn, $path, $domain, $secure, $httponly)
setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");