First off, I apologize but I couldn't find anything that was exactly matching my problem.
The problem is simple, my cookie scripts aren't working on my site. So, I went back to the very basics and made 2 very simple pages to test things out.
c1.php
<html>
<?php
setcookie ('TestCookie', 'test', time()+ 60);
?>
<a href="c2.php">c2</a>
</html>
c2.php
<html>
<?php
if (!empty($_COOKIE['TestCookie']))
{
echo "Cookie working";
echo $_COOKIE['TestCookie'];
}
else
{
echo "Cookie not working";
}
?>
</html>
Very simple, yet for some reason it doesn't work and I always get "Cookie not working".
I'm using PHP 4.3.10. I've tested these scripts out with IE 6 on Win2k as well as Netscape Navigator on Mac OS 9 and they did not work in either case.