Thomas P
05-22-2004, 10:17 PM
Hi there,
I need your PHP expertise regarding a cookie code:
<?PHP
if ($set) { setcookie("testcookie","inhalt",time()+3600); }
echo 'Anzahl der Cookies: ' . count($_COOKIE) . '<br>';
echo 'Cookie testcookie: ' . $_COOKIE['testcookie'];
?>
code ist accessed via "script.php?set=true"
Doesn't really work.
What's wrong here?
Thanks,
-Tom
I need your PHP expertise regarding a cookie code:
<?PHP
if ($set) { setcookie("testcookie","inhalt",time()+3600); }
echo 'Anzahl der Cookies: ' . count($_COOKIE) . '<br>';
echo 'Cookie testcookie: ' . $_COOKIE['testcookie'];
?>
code ist accessed via "script.php?set=true"
Doesn't really work.
What's wrong here?
Thanks,
-Tom