public function handle($stanza, $parent = false) { $session = \Sessionx::start(); list($jid, $resource) = explode('/', (string) $stanza->bind->jid); list($session->username, $session->host) = explode('@', $jid); if ($resource) { $session->resource = $resource; } $ss = new Start(); $ss->setTo($session->host)->request(); }
public function handle($stanza, $parent = false) { $session = \Session::start(); list($jid, $resource) = explode('/', (string) $stanza->bind->jid); list($username, $host) = explode('@', $jid); $session->set('username', $username); $session->set('host', $host); if ($resource) { $session->set('resource', $resource); } $ss = new Start(); $ss->setTo($session->get('host'))->request(); }