Bug #726: Cookies sent to browser in reverse order

From: Date: Tue, 08 Sep 1998 03:01:25 +0000
Subject: Bug #726: Cookies sent to browser in reverse order
Groups: php.dev 
Request: Send a blank email to php-dev+get-871@lists.php.net to get a copy of this message
From: walton@nordicdms.com Operating system: FreeBSD 2.2.6 PHP version: 3.0.3 PHP Bug Type: Feature/Change Request Bug description: Setcookie() pushes the cookie onto a stack (only on Apache, if I read the code right). Using a stack instead of a FIFO causes the cookies to be sent to the browser in the reverse order that they are set in the script. This is a problem when a script needs to clear a cookie and then may or may not set the cookie with a new value later in the script. In the case where the cookie gets a new value, it is immediately cleared due to the reverse ordering. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#871) next »