diff --git a/lib/XmppPrebind.php b/lib/XmppPrebind.php index 1df19ed..8110ba7 100644 --- a/lib/XmppPrebind.php +++ b/lib/XmppPrebind.php @@ -65,6 +65,12 @@ class XmppPrebind { protected $mechanisms = array(); + /** + * Session creation response + * + * @var DOMDocument + */ + public $response; /** * Create a new XmppPrebind Object with the required params @@ -144,6 +150,9 @@ public function connect($username, $password) { } $this->debug($this->encryption, 'encryption used'); + + // Assign session creation response + $this->response = $body; } /**