beware, dots (.) in cookie names are replaces by underscores (_)
beware, dots (.) in cookie names are replaces by underscores (_)
The value of $_COOKIE is determined by the content of cookies received in the user agent's request.
If you set a cookie (ie send it to the browser), it won't be sent back until the next request and so the data won't be present in $_COOKIE.