Re: Can't set a cookie?

From: Date: Sat, 15 Jun 2002 15:50:52 +0000
Subject: Re: Can't set a cookie?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102347@lists.php.net to get a copy of this message
LE> Any idea why I'm getting this error? LE> Warning: setcookie() expects parameter 3 to be long, string given in *my LE> script* on line 2 LE> setcookie("mytest", 1, "", "/"); It needs the time to be something not null. If you mean to set 0, use "0" instead of "". Or, time()+somenum (not in quotes). - Julie --> Julie Meloni --> julie@thickbook.com --> www.thickbook.com Find "Sams Teach Yourself MySQL in 24 Hours" at http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20

« previous php.general (#102347) next »