Hello. Does anyone know how to read a cookie in php that is set by another language, say java.
I set a cookie called mycookie in Java BUT
apparently this does not print anything:
echo $HTTP_COOKIE_VARS["mycookie"];
--
Thanks.
Mike.
echo $GLOBALS["mycookie"];
or
echo $_COOKIE["mycookie"];
If Java did set a cookie to the browser or cache, then PHP will be able to read it. The browser writes the cookie based upon the HTTP_HEADER sent and not the server language used.