public function ResponseHeaderBag::clearCookie in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/ResponseHeaderBag.php \Symfony\Component\HttpFoundation\ResponseHeaderBag::clearCookie()
Clears a cookie in the browser.
Parameters
string $name:
string $path:
string $domain:
bool $secure:
bool $httpOnly:
File
- vendor/
symfony/ http-foundation/ ResponseHeaderBag.php, line 219
Class
- ResponseHeaderBag
- ResponseHeaderBag is a container for Response HTTP headers.
Namespace
Symfony\Component\HttpFoundationCode
public function clearCookie($name, $path = '/', $domain = null, $secure = false, $httpOnly = true) {
$this
->setCookie(new Cookie($name, null, 1, $path, $domain, $secure, $httpOnly));
}