/** * Unset cookie variable * * @param string $name Cookie name * @return null */ function unsetVariable($name) { if (isset($this) && instance_of($this, 'Cookies')) { $var_name = $this->getVariableName($name); $this->setVariable($name, null); $_COOKIE[$var_name] = null; } else { $instance =& Cookies::instance(); return $instance->unsetVariable($name); } // if }