Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sessionStorage for persistence_type #431

Open
odaysa opened this issue Jul 11, 2024 · 2 comments
Open

Support sessionStorage for persistence_type #431

odaysa opened this issue Jul 11, 2024 · 2 comments

Comments

@odaysa
Copy link

odaysa commented Jul 11, 2024

Hello,

I see that Mixpanel supports localStorage and Cookie for persistence_type.
As known, localStorage and Cookies are shared between tabs, which can effect the expected behavior of the application, one tab can change the super properties of the other tab.
Supporting sessionStorage will enable the independency of the super properties keeping them encapsulated for that tab.
The shared resource between the tabs caused serious issues in our application that I had to solve by created my own super properties...

@tdumitrescu
Copy link
Member

Interesting. For most applications, it's desirable to share super properties across tabs. But sessionStorage and localStorage are API-compatible, so it shouldn't be too much work to offer it as a persistence option for those who need it.

@odaysa
Copy link
Author

odaysa commented Jul 15, 2024

I found another issue in our system because of this...
"time_event" also stored in the cookies, different tabs with same event name will have wrong duration values...
How can we sort this issues quickly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants