cookie question
| From: | David R | Date: | Fri, 04 Jul 2003 06:55:07 +0000 |
| Subject: | cookie question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-153954@lists.php.net to get a copy of this message | ||
Hello,
I have a cookie question.
I have the following code is a file called tc.php
<?
global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $settings, $sql ;
$val="123";
setcookie ("auth", $val , time() + 3600);
$cookie = $HTTP_COOKIE_VARS['auth'];
echo "cookie is: $cookie";
?>
I have no problem retrieving the value cookie value ( 123 ) on my local
machine but when I post to the internet I can't get the cookie value.
Any ideas why?
Thanks.
David R