You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We set several variables on the login - when the user now closes the browser and opens the site again, he is still logged in but all the variables are "forgotten" which leads to a strange behaviour.
The text was updated successfully, but these errors were encountered:
localStorage and sessionStorage both extend Storage. There is no difference between them except for the intended "non-persistence" of sessionStorage.
That is, the data stored in localStorage persists until explicitly deleted. Changes made are saved and available for all current and future visits to the site.
For sessionStorage, changes are only available per tab. Changes made are saved and available for the current page in that tab until it is closed. Once it is closed, the stored data is deleted.
We store browser authentication in localStore and delete it when you log out.
Variables and Notebooks are stored in the session store.
The rationale for this is that you may want to have two browser windows open that use different variables. E.g. if you're using a variable to store a query filter, you can view two versions of a chart in two windows.
So I guess the problem is, that once you re-open the browser, you're getting the on-login event to re-set the variables, right? I think we have the following options:
store variables in localStore - maybe more intuitive but we loose the multi-tab feature
introduce session and local variables - flexible but might be hard to understand
we're working on an on-load hook which could be used here
Changing the variables to apply to the entire browser, rather than a tab is not feasible. Many use cases rely on having different displays in different tabs.
Introducing setLocal and setSession is too confusing.
We recommend moving the setVariable calls from on-login to onRender on a page. There might be a small performance impact of this, however, this seems to be the most logical and easy fix for this issue.
We set several variables on the login - when the user now closes the browser and opens the site again, he is still logged in but all the variables are "forgotten" which leads to a strange behaviour.
The text was updated successfully, but these errors were encountered: