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

🐛 [Frontend] Fix: Unique session id #6335

Merged
merged 9 commits into from
Sep 10, 2024

Conversation

odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Sep 10, 2024

What do these changes do?

Changes the logic to create/get the clientsessionid. When a tab gets duplicated, the sessionStorage and localStorage get also copied. When this happens, two different tabs would end up using the same sessionId, bringing the user to buggy scenarios.

This PR updates the getClientSessionId function, which now also relies on the window.name, which doesn't get copied when a tab is duplicated but it persists to window reloads.

uniqueTabId

Related issue/s

closes #4363

How to test

Dev-ops checklist

@odeimaiz odeimaiz self-assigned this Sep 10, 2024
@odeimaiz odeimaiz added this to the Eisbock milestone Sep 10, 2024
@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels Sep 10, 2024
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great! thanks!
and this should survive to F5

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 thanks a lot!

Copy link
Contributor

@jsaq007 jsaq007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@odeimaiz odeimaiz enabled auto-merge (squash) September 10, 2024 12:14
Copy link

@odeimaiz odeimaiz merged commit 891312a into ITISFoundation:master Sep 10, 2024
50 checks passed
mrnicegyu11 pushed a commit to mrnicegyu11/osparc-simcore that referenced this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:frontend issue affecting the front-end (area group) bug buggy, it does not work as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate Tab with open study enables concurrency
6 participants