Viko | 2025-01-31 08:11:21 UTC | #1
Context:
We are integrating Genesys Web Messaging into our SAP Spartacus (Angular) application. The chat initializes with different attributes based on whether the user is logged in or a guest. However, there is no option to transition between these two states once the chat starts.
Problem:
- The Genesys chat session persists even after login/logout.
- We remove all Genesys scripts, iframes, and local storage, but the chat still remembers the previous session.
- Manually clearing local storage for
apps.mypurecloud.de in DevTools resets the session, but doing it programmatically does not work due to cross-origin restrictions.
What We’ve Tried:
- Removing all Genesys-related elements (scripts, iframes).
- Clearing
localStorage, sessionStorage, and IndexedDB via JavaScript. - Forcing a full Genesys script reload.
- Attempting to use a new tab (
window.open()) to clear storage (blocked by browser security).
Question:
🔹 How can we programmatically reset the Genesys Web Messenger session on login/logout when storage is isolated by origin (apps.mypurecloud.de)? 🔹 Are there any alternative workarounds that don't require full page reloads?
Angelo_Cicchitto | 2025-01-31 08:29:36 UTC | #2
Hi - we recommend to not tamper with browser storage directly, but rather use existing Messenger JS Commands, depending on your needs:
There are other commands in JS reference that might be useful.
system | 2025-03-02 08:30:33 UTC | #3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 31500