php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #4647 Multiple calls to setcookie() are no longer performed in reverse order
Submitted: 2000-05-27 23:16 UTC Modified: 2000-06-04 00:10 UTC
From: travis at pulley dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.0 Release OS: Linux 2.2.15 Glibc2.1
Private report: No CVE-ID: None
 [2000-05-27 23:16 UTC] travis at pulley dot org
The php manual page http://www.php.net/manual/function.setcookie.php says "Multiple calls to setcookie() in the same script will be performed in reverse order. If you are trying to delete one cookie before inserting another you should put the insert before the delete."

This behaviour does not exist for my setup:
apache 1.3.12
php 4.0.0
configure options: --with-apache=../apache_1.3.12 --with-ftp --with-gd=../gd1.4   --with-ttf=../freetype-1.3.1  --with-mysql   --enable-track-vars --with-xml --with-mck=../cybercash/ --with-gettext --disable-debug --with-imap --enable-versioning

I'm not sure if that was an intentional change, but if it is, it's a little inconvenient for all the php3 scripts I have that delete cookies before setting them. Thanks!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-04 00:10 UTC] mrobinso at cvs dot php dot net
Fixed in cvs.
Thanks for the report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 20:01:32 2024 UTC