Maybe your game has usernames? so if a player disconnects then comes around again when he connects to server check if that username is in any previous games/rooms? note: this means the usernames should be unique.
Otherwise do some kind of a userId system where each new user to register to your game is given a number incremented from the previous user to register save that number clientsided like cookies from browsers and send the number to server when disconnected player is joining again.
Both methods can easily be exploited by reverse engineering the saved file or picking out a username that disconnected on a different phone for example.
Best method would be to use some kind of a username/password system which makes all usernames unique.
If a user connects a 2nd/3rd time then the server should give out a message of some sort saying the person is currently logged in?
If that person gets interrupted then either send a disconnect packet or if you can't the server can take care of this. Either the connection will be lost with server so the user's state goes disconnected. Or somehow the connection is still alive? maybe UDP socket? the server will attempt to send a ping-pong type of packet if no response then obviously user is disconnected from that app so set state to disconnected etc..