function validateCookieName($name) { return (preg_match($this->getCpPattern($this->httpCookieNamePat), $name)) ? "cookie name $this->invalid" : null; }