R
RisteD
Guest
For some reason sessions created while executing ajax post request won't be created. Here is an example
PHP:
This is an...
Read more
Continue reading...
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...