I am having trouble reading a cookie that I set in the cgi-bin with a perl script from my php3 scripts. The cookie values are available to both javascript running from my htdocs directory and all my perl scripts. But not from any of my perl scripts which reside in a subfolder of my htdocs.

here is my code:
perl:

print "Set-Cookie:user_num=$var_num; path='/'; expires=Sun,31-Dec-2000 00:00:00GMTn";

in PHP: (none of these show anything)

echo $user_num;

echo $HTTP_COOKIE_VARS["user_num"];
echo $HTTP_COOKIE;

I think I am making some stupid mistake, this should be simple.

Thanks ahaed of time for any help.