From 6bbfffb981d095ff813ecd3ff704607bcc01a70f Mon Sep 17 00:00:00 2001 From: "Johannes M. Schmitt" Date: Tue, 25 Jan 2011 14:41:09 +0100 Subject: [PATCH] added path, and domain to clearCookie() in accordance with RFC 2109, and RFC 2965 --- src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php b/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php index fbd68459dc..0d0ff011dc 100644 --- a/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php +++ b/src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php @@ -79,11 +79,13 @@ class ResponseHeaderBag extends HeaderBag * Clears a cookie in the browser * * @param string $name + * @param string $path + * @param string $domain * @return void */ - public function clearCookie($name) + public function clearCookie($name, $path = null, $domain = null) { - $this->setCookie(new Cookie($name, null, time() - 86400)); + $this->setCookie(new Cookie($name, null, time() - 86400, $path, $domain)); } /**