#44804 [Opn->Ver]: setrawcookie doesn't set an empty value but sets 'deleted' instead

From: Date: Thu, 24 Apr 2008 11:11:45 +0000
Subject: #44804 [Opn->Ver]: setrawcookie doesn't set an empty value but sets 'deleted' instead
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124469@lists.php.net to get a copy of this message
ID: 44804 Updated by: jani@php.net Reported By: oliver at netconcepts dot com -Status: Open +Status: Verified Bug Type: HTTP related Operating System: Linux Red Hat Enterprise -PHP Version: 5.2.5 +PHP Version: 5.2CVS,5.3CVS (2008-04-24) Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#124469) next »