Page 1 of 1

Cookie issues

Posted: Mon Apr 05, 2004 11:58 am
by freakofnature
I am developing a site on a webhost that is already set up (Linux). I have taken the code and moved it to my home windows box, installed the latest PHP, Apache 1.3, MySQL, etc. The code isn't working right on the Windows box. At first, the post, get, and cookies weren't working. Then I added the line:

import_request_variables('GCP');

and now the get and post variables are working. My problem now is that $_COOKIE is always empty. Is there something specific I need to do to enable this?

Posted: Mon Apr 05, 2004 2:06 pm
by TheBentinel.com
There's a domain associated with a cookie. If you leave it blank, I think it puts out whatever domain you're on at the time. But if it's filled in, it might not be finding it.

In other words, is your code trying to drop a cookie for domain "TheRealSite.com" but you're trying to read it from "localhost"?