protected function getCookieName($cookieName)
    {
        // NOTE: If the cookie name is changed, we must also update the method in piwik.js with the same name.
        $hash = substr(
            sha1(
                ($this->configCookieDomain == '' ? self::getCurrentHost() : $this->configCookieDomain) . $this->configCookiePath
            ),
            0,
            4
        );

        return self::FIRST_PARTY_COOKIES_PREFIX . $cookieName . '.' . $this->idSite . '.' . $hash;
    }
protected function getCookieName($cookieName)
    {
        // NOTE: If the cookie name is changed, we must also update the method in piwik.js with the same name.
        $hash = substr(
            sha1(
                ($this->configCookieDomain == '' ? self::getCurrentHost() : $this->configCookieDomain) . $this->configCookiePath
            ),
            0,
            4
        );

        return self::FIRST_PARTY_COOKIES_PREFIX . $cookieName . '.' . $this->idSite . '.' . $hash;
    }
protected function getCookieName ( $ cookieName ) { // NOTE: If the cookie name is changed, we must also update the method in piwik.js with the same name. $ hash = substr ( sha1 ( ( $ this -> configCookieDomain == '' ? self :: getCurrentHost ( ) : $ this -> configCookieDomain ) . $ this -> configCookiePath ) , 0 , 4 ) ; return self :: FIRST_PARTY_COOKIES_PREFIX . $ cookieName . '.' . $ this -> idSite . '.' . $ hash ; }
Get cookie name with prefix and domain hash
@param string $cookieName
@return string
Get cookie name with prefix and domain hash