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

Handling multiple browser windows in the docker environment #3156

Open
kelsos opened this issue Jul 5, 2021 · 1 comment
Open

Handling multiple browser windows in the docker environment #3156

kelsos opened this issue Jul 5, 2021 · 1 comment

Comments

@kelsos
Copy link
Member

kelsos commented Jul 5, 2021

Problem Definition

When running in docker, the lifecycle of the frontend is not directly tied to that of the the backend, like the electron app.

This means that the backend can continue having a logged user while the frontend closes or gets opened from another browser.

If this happens on the same browser window, or if all the other windows are closed #3155 should improve the user experience a bit. However, there are some edge cases remaining.

One example of such a case, is when a user has a browser window open somewhere and attempts to log in with the same or another user on a different location.

With the current implementation, the other frontend will get also keep polling and reading messages (after a temporary error in the case of a different user) which might affect the functionality of the active session, since the backend is not designed for multiple frontends running at the same time.

A solution is needed where any other sessions are automatically terminated and any connected frontend goes back to the login screen when a new session starts in a new browser window.

@kelsos
Copy link
Member Author

kelsos commented Jul 19, 2024

@LefterisJP suggested that sessions #2922 would probably be a good solution for this.

Essentially when a user logins in the new browser that will kill the old session and force the older instance of the browser to logout due to an invalid session.

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

No branches or pull requests

1 participant