Bug #14227: header(); does not overwrite session cookie
| From: | joffrey at ne2000 dot nl | Date: | Mon, 26 Nov 2001 11:25:18 +0000 |
| Subject: | Bug #14227: header(); does not overwrite session cookie | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-71642@lists.php.net to get a copy of this message | ||
From: joffrey@ne2000.nl
Operating system: Linux 2.4.2-2
PHP version: 4.0.6
PHP Bug Type: HTTP related
Bug description: header(); does not overwrite session cookie
<?php
session_start();
header("Set-Cookie: x");
?>
does not rewrite the Set-Cookie header, nor does true or fasle as second
parameter on header.
some header:
HTTP/1.1 200 OK
Date: Mon, 26 Nov 2001 11:22:46 GMT
Server: Apache/1.3.20 (Unix) AuthMySQL/2.20 PHP/4.0.7RC3 mod_ssl/2.8.4
OpenSSL/0.9.6
X-Powered-By: PHP/4.0.7RC3
Set-Cookie: PHPSESSID=018ce45ca4f6950531412d038594cc14; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Set-Cookie: x
Content-Length: 2297
Content-Disposition: inline; filename=document.pdf
Connection: close
Content-Type: application/pdf
feature or bug? :)
--
Edit bug report at: http://bugs.php.net/?id=14227&edit=1