I have two php scripts
test.php
<?php header("location: test2.php"); setcookie("test", "8kFL4IZfjkBmV7AC", time()+60*60, '/'); exit; ?>
test2.php
<?php var_dump($_COOKIE); ?>
Then I point my browser to test.php, which redirects to test2.php. Then I get the following results.
In firefox, I get the following:
array 'test' => string '8kFL4IZfjkBmV7AC' (length=16)
However, in IE6, I get the following:
array 'PHPSESSID' => string 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (length=32)
Note: I have intentionally X'd from PHPSESSID above!
Does anyone know where I am going wrong and why IE6 is not showing my cookie.
Thanks in advance
source share