Create a session using xml_rpc

Hi,

When a user login to my website I would like to send an xml_rpc to ejabberd and ask him to start a session to that user and get the session id.
Then, the website server will pass the session id to a web XMPP client.

Is it possible?
Do I just need to call some function in ejabberd that put a new sid in the sessions table or do I have to start a new process for the new user?

Thanks

Syndicate content