If a cookie is set with either setcookie() function or header() function in PHP, whether it can be immediately checked to see if the client accepted it? 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: cookies php syntax
setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");