Added setCookieDomain function to Vars class