Added ability to specifiy domain with cookies