ID: 44804 User updated by: oliver at netconcepts dot com Reported By: oliver at netconcepts dot com Status: Wont fix Bug Type: HTTP related Operating System: * PHP Version: 5.2CVS,5.3CVS (2008-04-24) New Comment:
setting a cookie value to 'deleted' has nothing to do with a deleted cookie. Thats just a string, not an action or whatever. I cannot imagine any application that relies on 'deleted' cookies showing up with a value of 'deleted' instead of '' (empty string). A fix should at least go into the next major version. Additionally the documentation needs an update. Thanks. Previous Comments: ------------------------------------------------------------------------ [2008-04-28 23:19:02] [EMAIL PROTECTED] A fix would be a massive BC break since many applications rely on "" value resulting in cookie deletion. ------------------------------------------------------------------------ [2008-04-23 01:19:36] oliver at netconcepts dot com Description: ------------ the setrawcookie function doesn't set an empty value but sets the value 'deleted' instead. An empty value is perfectly fine in a cookie, there is no need to modify that value in any way. This bug is the same for PHP 4.3.1, and it was never solved? http://bugs.php.net/bug.php?id=33526&edit=2 Reproduce code: --------------- setrawcookie('testcookie', ''); Expected result: ---------------- (Firefox Live HTTP Headers output) Set-Cookie: testcookie= Actual result: -------------- (Firefox Live HTTP Headers output) Set-Cookie: testcookie=deleted ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44804&edit=1
