public function process(){ $key = $this->getProperty('captcha_key'); $method = $this->getProperty('method'); $code = $this->getProperty('code'); if(empty($code)){ $code = $this->modx->request->parameters[$method][$key]; } $session_code = $_SESSION[$key];