I just changed my server's OS from WinXP to Win2k, all of a sudden my cookie reading script isn't working. It seems that it isn't reading anything from the $_COOKIE var. Is there any reason that this variable would all of a sudden stop working? Register_globals is on. In the phpinfo, the cookie info is all there but the $_COOKIE doesn't seem to work.
Dec 11, 2003, 2:13 AM
Veteran / Moderator (17298 posts)
Dec 11, 2003, 2:13 AM
Post #2 of 4
Views: 992
So the following doesn't give you anything?
global $_COOKIE;
echo "Values held in \$_COOKIE<BR><BR>";
foreach ($_GLOBALS as $name => $val) {
echo "$name => $val <BR>";
}
?>
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Code:
<?php global $_COOKIE;
echo "Values held in \$_COOKIE<BR><BR>";
foreach ($_GLOBALS as $name => $val) {
echo "$name => $val <BR>";
}
?>
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

