I\'ve implemented a chrome extension which allow to use XMPP chat over BOSH connection with punjab server running on a remote server. It is implemented using javascript Strophe
Make a long story short!
Use:
mXmppConnection.login (USERNAME, PASSWORD, StationName/NickName);
And not:
mXmppConnection.login (USERNAME, PASSWORD);
The last parameter called resource, and represents your station that you login from.
That way you can login with the same username, but still from 2 devices.