Issue Bug Closed

#99032Multiple Set-Cookie-Headers in Extbase-Responses are not sent to browser

Markus Müller-Wipperfürth 11/09/22, 15:12 updated 12/02/25, 14:33

Description

If I add multiple HTTP-headers with the same name (e.g. “Set-Cookie”) in Extbase-Controllers by adding them to the PSR-(Extbase-)Response, only the last one is sent to the browser.

The problem occurs in TYPO3\CMS\Extbase\Core\Bootstrap in line 202, when calling the header()-Method without making a difference if headers with multiple values should be replaced or added. Because of this behaviour, only the last Cookie is sent the the browser, because the last “Set-Cookie” overrides the previous one.

An identical problem existed in TYPO3 Core PSR-Responses, but was already fixed (see: https://forge.typo3.org/issues/88482).
This solution could also be adopted to Extbase to fix the described problem.

Reviews 1

History 612

  1. Gerrit Code Review pushed patch set 17 for main to change 90471 status New Under Review <span data-processor="relativetime" data-value="2025-11-17T17:29:10+00:00" > 11/17/25, 17:29 </span>

  2. Tim Weisenberger commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-11-18T19:55:08+00:00" > 11/18/25, 19:55 </span>

    Applied in changeset commit:f1fbbefc1e7cb66c3cb53d4ef654b2c6a40dd71d.