Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
xavierarmadillo #1
Member since Nov 2010 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: multiple sign on
I am finding that is I am logged in using my program and phone and the phone turns off, my presence is changed to unavailable even if I am still on. Is this something that I should detect somehow? What is the general way to handle this.
Avatar
Alex #2
Member since Feb 2003 · 4295 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
when you have multiple concurrent sign on with the same user then the resource for each of this connections is different.

So eg:
  • user@server.com/WebClient
  • user@server.com/PhoneClient
  • user@server.com/DesktopClient

While for security reasons the resource should be unpredictable and not Weblient PhoneClient and DesktopClient.

When you get a presence then the presence includes the resource of course. This means you know with how many clients a user is online, and when one goes offline you know exactly which client went offline and which is still online. Each of this clients can also have a different online state. For example my Phone could be on away while its in my pocket and my desktop client could be online because I am active working on it right now.

There is no best practice for handling presences from multiple resources, this can vary a lot for different use cases.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS