protected function loadVisitorIdCookie()
    {
        $idCookie = $this->getCookieMatchingName('id');
        if ($idCookie === false) {
            return false;
        }
        $parts = explode('.', $idCookie);
        if (strlen($parts[0]) != self::LENGTH_VISITOR_ID) {
            return false;
        }
        /* $this->cookieVisitorId provides backward compatibility since getVisitorId()
        didn't change any existing VisitorId value */
        $this->cookieVisitorId = $parts[0];
        $this->createTs = $parts[1];
        $this->visitCount = (int)$parts[2];
        $this->currentVisitTs = $parts[3];
        $this->lastVisitTs = $parts[4];
        if (isset($parts[5])) {
            $this->ecommerceLastOrderTimestamp = $parts[5];
        }

        return true;
    }