Remove a specific cookie value by name
string $name Cookie to remove by name:
Overrides RequestInterface::removeCookie
public function removeCookie($name) {
if ($cookie = $this
->getHeader('Cookie')) {
foreach ($cookie as $cookieValue) {
if (strpos($cookieValue, $name . '=') === 0) {
$cookie
->removeValue($cookieValue);
}
}
}
return $this;
}