feat: standardize session storage key for improved consistency across pages

This commit is contained in:
Usman Baig
2026-01-17 14:17:07 +01:00
parent 134ceebca1
commit d12d2d96e3

View File

@@ -29,7 +29,9 @@
return cachedSessionId; return cachedSessionId;
} }
const key = 'plausible_session_' + domain; // * Use a static key for session storage to ensure consistency across pages
// * We don't use the domain in the key to avoid issues with subdomains/casing
const key = 'ciphera_session_id';
try { try {
cachedSessionId = sessionStorage.getItem(key); cachedSessionId = sessionStorage.getItem(key);