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

Session looses state when changing browsers #6

Open
ijiraq opened this issue May 13, 2022 · 1 comment
Open

Session looses state when changing browsers #6

ijiraq opened this issue May 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ijiraq
Copy link

ijiraq commented May 13, 2022

This issue reports a design flaw rather than bug.

The current implementation uses browser storage for state. This creates a conflict as moving from one browser/client to another looses the state of session. The sessions should keep their state info, doing so allows users to come back to their work at any browser and to share the URL of the session to share a result / demo.

Using the browser storage is fragile (see issue #2 ) and will be a problem as complexity increases.

@BearBearCodes BearBearCodes added the enhancement New feature or request label May 13, 2022
@BearBearCodes
Copy link
Member

Good suggestion. I agree that the ETC should preserve state between sessions and between browsers. I had never thought about sharing the URL of the session before, but you make a good point.

One way of preserving state is to store the session parameters on the Flask server. Then if the session storage for a certain element is empty, try and load the data from the Flask server. If we do this when the page loads, we should only have to do this once and not have to keep re-sending requests to the backend every time the frontend needs to re-render data.

@BearBearCodes BearBearCodes added this to the v1.0.1 milestone May 13, 2022
@BearBearCodes BearBearCodes modified the milestones: v1.0.1, v1.1.0 May 13, 2022
@BearBearCodes BearBearCodes removed this from the v1.1.0 milestone Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants