Ticket #1628 (reopened defect)
Lighttpd glues response headers together. Setting more than one cookie impossible.
| Reported by: | mail@… | Owned by: | jan |
|---|---|---|---|
| Priority: | high | Milestone: | 1.5.0 |
| Component: | core | Version: | 1.5.x-svn |
| Severity: | critical | Keywords: | |
| Cc: | Blocked By: | ||
| Need User Feedback: | yes | Blocking: |
Description
Lighttpd 1.19 seems to glue response headers with the same header name together. This breaks all scripts that try to set more than one cookie at the same time.
PHP script to reproduce:
== <?php setcookie('cookie1', 'value1'); setcookie('cookie2', 'value2'); ==
Intended behavior:
== $ php cookietest.php X-Powered-By: PHP/5.2.5 Set-Cookie: cookie1=value1 Set-Cookie: cookie2=value2 Content-type: text/html ==
Headers sent by Lighty:
== HTTP/1.x 200 OK X-Powered-By: PHP/5.2.5 Set-Cookie: cookie1=value1, cookie2=value2 Content-Type: text/html Content-Length: 0 Date: Fri, 04 Apr 2008 17:31:17 GMT Server: lighttpd/1.4.19 ==
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

