ID: 21750 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Linux Red Hat PHP Version: 4.3.0 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php If you want cookie to be set for directory other then current provide the path parameter to setcookie() as the 4th argument. Previous Comments: ------------------------------------------------------------------------ [2003-01-19 10:42:51] [EMAIL PROTECTED] Hi there! When i trying to set cookie it doesn't works! the code while (list($key, $value) = each ($_GET["orderformresult"])) { if(empty($order[$key])){ setcookie("order[".$key."]",""); setcookie ("order[".$key."]",$value,time()+3600); }else{ setcookie ("order[".$key."]",$value,time()+3600); } } So , the code is right, it works, but ONLY in that directory where the cookie was setted. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21750&edit=1