src/IntentAnalyticsModule.php
private function setVisitorCookie()
    {
        Yii::$app->response->cookies->add(new Cookie([
            'name' => $this->visitorCookieName,
            'value' => $this->visitor->getPrimaryKey(),
            'expire' => time() + $this->visitorCookieTime,
        ]));
    }
private function setVisitorCookie()
    {
        Yii::$app->response->cookies->add(new Cookie([
            'name' => $this->visitorCookieName,
            'value' => $this->visitor->getPrimaryKey(),
            'expire' => time() + $this->visitorCookieTime,
        ]));
    }
private function setVisitorCookie ( ) { Yii :: $ app -> response -> cookies -> add ( new Cookie ( [ 'name' => $ this -> visitorCookieName , 'value' => $ this -> visitor -> getPrimaryKey ( ) , 'expire' => time ( ) + $ this -> visitorCookieTime , ] ) ) ; }
Add visitor cookie
Add visitor cookie