php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #726 Cookies sent to browser in reverse order
Submitted: 1998-09-07 23:01 UTC Modified: 2000-06-23 11:13 UTC
From: walton at nordicdms dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.3 OS: FreeBSD 2.2.6
Private report: No CVE-ID: None
 [1998-09-07 23:01 UTC] walton at nordicdms dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-23 11:13 UTC] hholzgra at cvs dot php dot net
implemented in php4
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 22:01:30 2024 UTC