|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15981 special order for header-location an setcookie in CGI-Mode
Submitted: 2002-03-10 04:41 UTC Modified: 2002-03-10 06:36 UTC
From: metz at speedpartner dot de Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.1.2 OS: RedHat 7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: metz at speedpartner dot de
New email:
PHP Version: OS:


 [2002-03-10 04:41 UTC] metz at speedpartner dot de
when trying to set a cookie before sending a header("location: ") - request the is a special order
first you have to do the header-redirect and after that you can do the setcookie.
this only seems to appear with CGI-PHP


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-10 06:36 UTC]
This is not a bug. Please double-check the documentation available
at and the instructions on how to report
a bug at

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Mar 26 00:03:53 2023 UTC