Clearing cookies/session webmessaging doesnt end chat at agent side

Hi ,

Just wondering if anyone can help ? We are using webmessaging.

In the webmessaging widget, we ended chat by clearing cookies / session of "gcm", and this is really worked, it clearing chat history at the customer side

var values = [],
keys = Object.keys(localStorage),
i = keys.length;
while ( i-- ) {
if(keys[i].indexOf('gcm')>0){
localStorage.removeItem(keys[i]);
}
}

but the issue is although chat history is disappeared, it doesnt ended chat at Genesys Cloud agent side, as following:

Is there any way to end chat at agent side, if customer widget clearing cache/session ?

thanks
Fransiska

Oops I completely misread it. I deleted my previous reply.

Deleting cookies is just deleting the session on the user perspective but not on the agent perspective. So unless you send a signal from the end user to the agent, there is no way to know that chat ended after deleting cookies.

But the following feature will allow end users to disconnect. But it is is being developed so you can track this one and maybe vote.
Web Messaging - End-User can | Genesys Cloud Ideas Portal (aha.io)

hi @IvanDg,

thanks for sharing about this

Fransiska

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.