Clears a cookie in the browser
@api
Parameters
string $name:
string $path:
string $domain:
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/ResponseHeaderBag.php, line 235
Class
- ResponseHeaderBag
- ResponseHeaderBag is a container for Response HTTP headers.
Namespace
Symfony\Component\HttpFoundation
Code
public function clearCookie($name, $path = '/', $domain = null) {
$this
->setCookie(new Cookie($name, null, 1, $path, $domain));
}