From:             [EMAIL PROTECTED]
Operating system: Linux Red Hat
PHP version:      4.3.0
PHP Bug Type:     *General Issues
Bug description:  Setcookie with array

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 bug report at http://bugs.php.net/?id=21750&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21750&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21750&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21750&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21750&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21750&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21750&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21750&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21750&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21750&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21750&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21750&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21750&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21750&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21750&r=gnused

Reply via email to