poorejc opened a new issue #32: URL: https://github.com/apache/incubator-flagon-useralejs/issues/32
Fresh loaded UserALE creates sessionIDs that are malformed. Until the page is refreshed these sessionID looks like htis in JSON: "sessionID":"\"session_1613853205259\"" When the page is reloaded: "sessionID":"session_1613853205259" At page load, getInitialSettings checks for a value in 'data-session' (userale.options). If it doesn't find it will do one of two things: 1. it will check sessionStorage for a userAleSessionId key and if it finds one it will pass that to getInitialSettings 2. if it doesn't find that key it will create a new one and set the key and return the key that it sets. Looks like the returned value for the case where no key exists is JSON.stringify(value). When a key exists, the returned value is JSON.parse(window.sessionStorage.getItem(sessionKey)). Either fresh Session ID's need to not be stringified or need to be parsed after strigified. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
