Solved Session is not created

This topic has been solved
R

RisteD

Guest
For some reason sessions created while executing ajax post request won't be created. Here is an example
PHP:

Code:
 public function actionPostSession(){
        $data = $this->filter('metamaskid','str');
        if(!empty($data)){
            $this->session()->set('metamask_id', $data);
            return $this->apiResult(['code' => 201,'message' => $data]);
        }else{
            return $this->apiResult(['errorCode' => 404,'message' => 'Session not created!']);
        }
    }

This is an...

Read more

Continue reading...