Hi, thanks for the reply.
ya i am talking about having two different web chat application which is the single chat application and group chat application to integrate into 1 window.
I have separate single chat and group chat to become 2 independent web chat, and now i want to put this 2 web application into 1 window.
After I login, i am able to save the session info, however both the web chat application uses attach(jid,sid,rid,onConnect),
it disconnected immediately because the username@domain/resource is exactly the same for the 2 web chat application.
I think that XMPP does not allow user with same resource to be connect twice.
What I want to create is using a single login, to connect the 2 different web chat application to the server with 1 username@domain/resource.