i wrote a cookie test page:
<?php
error_reporting (E_ALL ^ E_WARNING ^ E_NOTICE);
// Check if cookie has been set or not
if ($_GET['set'] != 'yes') {
// Set cookie
$expires = time() + 60;
setcookie('jta', '1', $expires, '/', '.myplan.com');
// Reload page
header ("Location: " . $_SERVER['PHP_SELF'] . "?set=yes");
exit();
} else {
// Check if cookie exists
if (!empty($_COOKIE['jta'])) {
echo "Cookies are enabled on your browser<br>";
} else {
echo "Cookies are NOT enabled on your browser<br>";
}
echo nl2br(print_r($_COOKIE, true));
}
?>
i visited in IE and got this:
Cookies are NOT enabled on your browser
Array
(
[c_major] => 1
[c_note] => 1
[c_report] => 0
[c_college] => 1
[c_career] => 1
[phpbb2mysql_data] => a:2:{s:11:\"autologinid\";s:0:\"\";s:6:\"userid\";s:1:\"3\";}
)
Cookies do in fact seem to be working and yet my cookie test is failing. can anyone explain this? it works fine in Firefox. you can try it yourself here:
http://myplan.com/chump.php