We have put Pega webchat mashup code in one web application. Where user is logging in and doing chat. The requirement is to delete the chat history from the browser memory, once the user has logged out. Currently the chat history remains there only till the time we close the browser. Has anyone any idea, how can we remove previous chat from chat box ?
***Edited by Moderator: Pooja Gadige to add platform capability tag, add product details tags***
@vsrirama chat history is not stored in browser memory. It's retrieved from currently active Interaction case which is closed or invalidated after Interaction timeout occurs. User will be presented with new chat after that time has elapsed since last chat. For instance, if 60 mins is the configured timeout and user logs out and relogin in same browser window.
If they login after 60th mins -> new chat session starts
If they login before 60th min -> old chat session resumes
That is the default platform behavior. It may be possible to close 'live' Interaction case when user logs in, I'll let @Piotr Kulig to comment further.
Posted: 4 months ago
Posted: 9 Feb 2021 12:12 EST
Amit Patel (Amit_Patel)
Director, Customer Service Engineering
@vsrirama I'm not sure if this is still an issue, but there's a solution for this. You will need to make some minor changes to the PegaHelper.JS file that runs the mashup along with your own web application code. In the PegaHelper, you will need to add a small JS function to call the logoff action on that bot:
/* Following lines may be needed depending on the version */
Then, just call that resetBot function from the logoff action on your site.