From:             G dot B dot Yahav at gmail dot com
Operating system: WINDOWS SERVER
PHP version:      5.2.9
PHP Bug Type:     Unknown/Other Function
Bug description:  Cookie delete

Description:
------------
Hey,
i got a problen about deleting cookie array.
when i use the code above with normal cookie, all work good, but when i
defined a "cookie array" i cannot delete it.

Reproduce code:
---------------
<?php

// the cookie array name is PearServices_ClientSession

if( isset( $_COOKIE['PearServices_ClientSession'] ) )
                {
                        foreach ( $_COOKIE['PearServices_ClientSession'] as $k 
=> $v )
                        {
                                pearRegistry::DeleteCookie( 
"PearServices_ClientSession[".$k."]" );
                        }
                }
// pearRegistry::deletecookie function

final static function DeleteCookie( $name )
        {
                setcookie( $name, "", time() -3600 );
        }
?>

Expected result:
----------------
Cookie disappire

Actual result:
--------------
Cookie still in browser...

-- 
Edit bug report at http://bugs.php.net/?id=47896&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47896&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47896&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47896&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47896&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47896&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47896&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47896&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47896&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47896&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47896&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47896&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47896&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47896&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47896&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47896&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47896&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47896&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47896&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47896&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47896&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47896&r=mysqlcfg

Reply via email to