PHP and Javascript can share cookies to each other, but not able to change cookie value that created by the other.
1 2 3 4 |
//7 days setcookie('tree_lang', 'ENG', time() + 7*24*60*60, "/"); $_COOKIE['tree_lang']; |
Reference:
PHP and Javascript can share cookies to each other, but not able to change cookie value that created by the other.
1 2 3 4 |
//7 days setcookie('tree_lang', 'ENG', time() + 7*24*60*60, "/"); $_COOKIE['tree_lang']; |
Reference: