note 28123 deleted from function.setcookie by jsheets
| From: | jsheets@php.net | Date: | Fri, 03 Jan 2003 04:57:56 +0000 |
| Subject: | note 28123 deleted from function.setcookie by jsheets | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-41584@lists.php.net to get a copy of this message | ||
Hi,
I have a problem when using setcookie. I can pass cookie variable in Netscape. But I can't pass
in IE.
PHP Set Cookie Script:
<?
if (!isset($id))
{
$value=rand();
setcookie("id",$value,time()+300);
}
?>
PHP Read Cookie Script:
<?
echo $id;
?>
Thanks