Skip to content

session carryover to new window lost #237

Answered by frankie567
QnalNandi asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, okay, I understand now. The thing is, by default, our browser integration uses sessionStorage, which works only in a single window/page. It's not carried over a new window/tab. From MDN:

Whenever a document is loaded in a particular tab in the browser, a unique page session gets created and assigned to that particular tab. That page session is valid only for that particular tab.

If you want to solve that, you can switch to localStorage, which is similar but keeps the data in memory even after the page is closed.

It's not built-in in our SDK, but since sessionStorage and localStorage have the same API, it can actually be done quite easily:

      const initialize = () => {
        const 

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@QnalNandi
Comment options

Answer selected by QnalNandi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants