options) ? $session->options : array(); $adapter = new Qs_Captcha_Image($options); $newId = $adapter->generate(); $session->unsetAll(); $response = array( 'isValid' => true, 'oldId' => $id, 'newId' => $newId, ); $this->_displayJson($response); } }