|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-06 08:50 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 14:00:01 2025 UTC |
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...