public function setNewVisitorId()
    {
        $this->randomVisitorId = substr(md5(uniqid(rand(), true)), 0, self::LENGTH_VISITOR_ID);
        $this->userId = false;
        $this->forcedVisitorId = false;
        $this->cookieVisitorId = false;
        return $this;
    }
public function setNewVisitorId()
    {
        $this->randomVisitorId = substr(md5(uniqid(rand(), true)), 0, self::LENGTH_VISITOR_ID);
        $this->userId = false;
        $this->forcedVisitorId = false;
        $this->cookieVisitorId = false;
        return $this;
    }
public function setNewVisitorId ( ) { $ this -> randomVisitorId = substr ( md5 ( uniqid ( rand ( ) , true ) ) , 0 , self :: LENGTH_VISITOR_ID ) ; $ this -> userId = false ; $ this -> forcedVisitorId = false ; $ this -> cookieVisitorId = false ; return $ this ; }
Sets the current visitor ID to a random new one.
@return $this
Sets the current visitor ID to a random new one .