Cookie Issue

PHP and Javascript can share cookies to each other, but not able to change cookie value that created by the other.

Reference: