note 28123 added to function.setcookie

From: Date: Fri, 03 Jan 2003 04:29:50 +0000
Subject: note 28123 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-41583@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 -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+28123 http://master.php.net/manage/user-notes.php?action=delete+28123 http://master.php.net/manage/user-notes.php?action=reject+28123

« previous php.notes (#41583) next »