Procházet zdrojové kódy

[HttpFoundation] Minor clearCookie optimization

Jordi Boggiano před 14 roky
rodič
revize
6311960511

+ 1 - 1
src/Symfony/Component/HttpFoundation/ResponseHeaderBag.php

@@ -99,7 +99,7 @@ class ResponseHeaderBag extends HeaderBag
      */
     public function clearCookie($name, $path = null, $domain = null)
     {
-        $this->setCookie(new Cookie($name, null, time() - 86400, $path, $domain));
+        $this->setCookie(new Cookie($name, null, 1, $path, $domain));
     }
 
     /**