Having trouble understanding php cookies? It’s really pretty easy – php automatically creates the array $_COOKIE and populates it with any cookies that are set.
You can get at the cookie values with code like:
$_COOKIE['cookie_name_here']'
That’s all there is too it.