Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Doesn't save sid #17

@xDaizu

Description

@xDaizu

If I understand the protocol correctly, $sid should be somehow persisted so it doesn't create a new sid for the same user every time you call the binding.php file.

Well, I followed your example (adding $username and $password variables and an echo at the end)

require_once "lib/XmppPrebind.php";


$username = "test";
$password = "test";

$xmppPrebind = new XmppPrebind('localhost', 'http://localhost:5280/http-bind/', null, false, true);
$xmppPrebind->connect($username, $password);
$xmppPrebind->auth();
$sessionInfo = $xmppPrebind->getSessionInfo(); // array containing sid, rid and jid

echo json_encode($sessionInfo);

and every time I run it, it gives me a different sid. Where is it supposed to save it? And, if it doesn't, (i could save it myself) how do I inject it back in the next run?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions