can't display cookies
| From: | Eric | Date: | Fri, 24 Jan 2003 04:03:25 +0000 |
| Subject: | can't display cookies | ||
| Groups: | php.doc.chm | ||
| Request: | Send a blank email to php-doc-chm+get-622@lists.php.net to get a copy of this message | ||
Dear dir,
I'am eric. I read throught the chm doc - cookies syntax. That say
after setting cookies. it's auto created a variable name same as cookies.
but when i set a cookes and print out the cookies value .
nothing appear in web page.
any problems i have make wrong?
this is my code
$login = setcookie('userID',$name,(time()+3600),'/','.cookies.com',0);
if($login){
echo $userID;
}
thx a lots