We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2fa6e4 commit 5e812a4Copy full SHA for 5e812a4
1 file changed
packages/session/src/Cookie/ArrayCookies.php
@@ -105,11 +105,21 @@ public function getCookieHeaders(): array
105
106
$options = $this->valueOptions[$k] ?? null;
107
108
- $isRemove = in_array($k, $this->removeFields, true);
109
-
110
$header = $k . '=' . $item;
111
112
- if ($settings = $this->buildHeaderSettings($isRemove, $options)) {
+ if ($settings = $this->buildHeaderSettings(false, $options)) {
+ $header .= '; ' . $settings;
+ }
113
+
114
+ $headers[] = $header;
115
116
117
+ foreach ($this->removeFields as $k) {
118
+ $options = $this->valueOptions[$k] ?? null;
119
120
+ $header = $k . '=""';
121
122
+ if ($settings = $this->buildHeaderSettings(true, $options)) {
123
$header .= '; ' . $settings;
124
}
125
0 commit comments