[RSS Feed/News] Session is not created

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom