public static function setCookie($name, $value = null, $expire = null, $path = null, $domain = null, $secure = null, $httpOnly = null) { self::getInstance()->setCookieValue($name, $value, $expire, $path, $domain, $secure, $httpOnly); }
protected function save3rdPartyCookie($name, $value, $expire, $overwrite, $cookieDomainValidity = null) { if (!$overwrite && isset($_COOKIE[$name]) && $_COOKIE[$name] != '') { return; } if ($cookieDomainValidity == null) { Gpf_Http::setCookie($name, $value, $expire, "/"); } else { Gpf_Http::setCookie($name, $value, $expire, "/", $cookieDomainValidity); } }