Fixed handling of non-standard ports for cookie domain