I have a Coldfusion server that creates a domain level cookie that I want to read on a php server:
Here's the code of cookie.cfm on www.myserver.com
<cfcookie name="user_id" value="12345" expires="NEVER" domain=".myserver.c
om" path="/">
This works and creates the cookie correctly.
Name: user_id
domain: .myserver.com
value: 12345
Then on php.myserver.com/cookie.php I run a php page to print the cookie:
<?php
print "\nCookie";
print $HTTP_COOKIE_VARS["user_id"] ;
print "\nthat was the cookie";
?>
But this refuses to read the cookie, even though it's in the same domain. Can someone please tell me what I'm doing wrong here?