validateCookieDomainAgainstUrl()
public méthode
it follows the following (incomplete) verification:
- the site-domain is extracted from the base-url
- site-domain and cookie-domain are normalized by making them lowercase
- if the site-domain is empty, the check returns false because it's moot
- if the cookie-domain is smaller than three, the check returns false because it's moot
- if the cookie-domain does not start with a dot ("."), and the whole matches site-domain return true.
- otherwise the dot is removed and the cookie-domain is now with removed starting dot.
- the cookie domain must be the suffix of the site-domain and the remaining prefix of site-domain must end with
a dot. returns true/false