I have a OpenFire server running (it is using MySQL as it's database) and I'm trying to make a PHP http pre-bind system(using SASL) work with my web app.
I have got to a part of my app where I need to choose a random username that is not already online(for guest users). I was thinking of choosing some random users(in the Guests group I've created) and using the Presence Service plugin to check their online status until I find an available one(a user that's offline).
Is there a better way to get a list of offline/online users?
Does the server store the online status of users in the db? I've been looking around the OpenFire db but I can't figure it out.
Thanks.