Log user out of all other sessions


I have a small chat application running in my lager application user vue.js. When a user logs into a chat session I want to log them out of every other session that they may be logged into, regardless of device or how long they have been logged in. Is this possible natively with Cometchat?


Hi @Scott

Firstly check if you get the logged-in user from CometChat.getLoggedinUser() if yes then you can use CometChat.logout to logout the user and then login him again and start a new session. Hope this answer’s your query Do let us know if you still face any issue or any more clarification needed.