From ecf5ba48ab49260366eeea7da03c51663d6ee15c Mon Sep 17 00:00:00 2001 From: Jeremy-Z Date: Fri, 6 Mar 2026 09:56:36 -0500 Subject: [PATCH] INSR-8742: Fixing the issue with missing session key. --- src/constants/cookie-names.js | 3 +-- src/helpers/cookie-helper.js | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/constants/cookie-names.js b/src/constants/cookie-names.js index 9ee326f4..9a19c39f 100644 --- a/src/constants/cookie-names.js +++ b/src/constants/cookie-names.js @@ -14,8 +14,7 @@ const cookieNames = Object.freeze({ // Existing Safelite.com cookies DXDEV: 'dxdev', - SESSION_ID: 'sid', - SESSION_KEY: 'skey' + SESSION_ID: 'sid' }); const cookieExpirations = Object.freeze({ diff --git a/src/helpers/cookie-helper.js b/src/helpers/cookie-helper.js index 9f199611..9579ba51 100644 --- a/src/helpers/cookie-helper.js +++ b/src/helpers/cookie-helper.js @@ -165,7 +165,7 @@ export function getDeviceIdValue() { Gets value of skey cookie, returns 0 if not found. */ export function getSessionKeyValue() { - const cookieValue = getCookieValueByName(cookieNames.SESSION_KEY); + const cookieValue = getCookieValueByName(cookieNames.ISS_SESSION_KEY); if (cookieValue) { return cookieValue; @@ -281,7 +281,8 @@ export function setSessionIdIfUnset(value) { } export function setSessionKeyIfUnset(value) { - if (!isCookieSet(cookieNames.ISS_SESSION_KEY)) { + console.error("Current SessionKey Value: " + getSessionKeyValue() + " - New Value: " + value); + if (getSessionKeyValue() === 0) { setCookieProperties( { [cookieNames.ISS_SESSION_KEY]: value