protected function sendCookies() { if (!$this->cookies) { return; } foreach ($this->cookies as $key => $value) { $str = $this->cookies->parseValue($key, $value); header("Set-Cookie: {$str}", true); } }