#47896 [Opn->Bgs]: Cookie delete
| From: | jani@php.net | Date: | Mon, 06 Apr 2009 08:50:42 +0000 |
| Subject: | #47896 [Opn->Bgs]: Cookie delete | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135563@lists.php.net to get a copy of this message | ||
ID: 47896
Updated by: jani@php.net
Reported By: G dot B dot Yahav at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: WINDOWS SERVER
PHP Version: 5.2.9
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2009-04-04 19:37:07] G dot B dot Yahav at gmail dot com
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 this bug report at http://bugs.php.net/?id=47896&edit=1