* store auth as a boolean

git-svn-id: svn://netflint.net/xmpphp@58 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
fritzy 2008-09-21 23:23:19 +00:00
parent 02a3f3dc5d
commit 756afc45a4

View File

@ -179,12 +179,8 @@ class XMPPHP_BOSH extends XMPPHP_XMPP {
public function saveSession() { public function saveSession() {
$_SESSION['XMPPHP_BOSH'] = Array(); $_SESSION['XMPPHP_BOSH'] = Array();
#$variables = Array('server', 'user', 'password', 'resource', 'fulljid', 'basejid', 'authed', 'session_started', 'auto_subscribe', 'use_encryption', 'host', 'port', 'stream_start', 'stream_end', 'disconnected', 'sent_disconnected', 'ns_map', 'current_ns', 'lastid', 'default_ns', 'been_reset', 'last_send', 'use_ssl', 'rid', 'sid', 'http_server','http_buffer', 'xml_depth'); $_SESSION['XMPPHP_BOSH']['rid'] = (string) $this->rid;
$variables = Array('rid', 'sid', 'authed'); $_SESSION['XMPPHP_BOSH']['sid'] = (string) $this->sid;
foreach ($variables as $key) { $_SESSION['XMPPHP_BOSH']['authed'] = (boolean) $this->authed;
#print "Saving $key as {$this->$key}<br/>";
flush();
$_SESSION['XMPPHP_BOSH'][$key] = (string) $this->$key;
}
} }
} }