Update CookieFactory.php