Automatic logout and icon xmpp disappearing

[details=“Support intro”]

Nextcloud 16.0.1
Centos 7
Apache 2.4
php 7.3

Good morning, I’m going through a problem and I’d like your help.
When the user logs in, if he does not log out the nextcloud is still logged in, and when he turns on the computer the next day he will still be logged in, but that way a problem with chat xmpp occurs, he simply disappears, and to be able to open the chat again I have to logout and login, would you have any possibility of the system logout automatically in every at least 24 hours?
Or a solution for when the next day when the user is chatting is still logged in too?

thanks in advance