authBase() ? $this->authCookieName() : $this->cookieName(); } /** * Returns the cookie domain for central auth mode, or null for single-domain. * The domain is only set when the host matches the auth base domain. */ final protected function sessionCookieDomain(DomainInterface $domainManager, string $host): ?string { return $domainManager->matchesAuth($host) ? $domainManager->authBase() : null; } }