Takes the domain value from a cookie and a hostname and determines if the cookie should be set for the host