Can't Read Cookie - URGENT! PLEASE HELP!
| From: | Jesse Binam | Date: | Tue, 12 Sep 2000 22:53:00 +0000 |
| Subject: | Can't Read Cookie - URGENT! PLEASE HELP! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16457@lists.php.net to get a copy of this message | ||
Hello,
The script setting the cookie is in a subdirectory. I can read the cookie
from the script in the subdirectory but I need to access it from the root
directory. I don't get this at all!!! please respond.
Here is the code that seems to have the problem
script 1:
// check if cookie exists
if($PCDPoll == "1")
// cookie exists
$poll_voteValid = 0;
else
// cookie does not exist yet, set one now
setCookie("PCDPoll", "1", time()+604800, "/",
".pcdiscounters.com");
script 2:
if($PCDPoll == "1")
poll_viewResults(1);
else
poll_generateUI(1, "http://www.pcdiscounters.com/index.htm");
Thanks,
Jess