How to activate the user on Chatroom after the user logout or become idle for a long?

I am using Openfire 4.3.2.
Every time a client disconnect or goes offline it become GHOST User and the server kick out that user form Chatroom, and it’s not allowing that user to join the room again.
I tried to update the chatroom via API call and add the same user entry but it still failing. The client/user still not able to send/receive chat message.

Is there any way to keep the client/user persistent OR allow the user to join the chatroom once come online again?