phenopolis / phenopolis_genomics_browser

Python API and React frontend for the Phenopolis Genomics Browser
https://dev-live.phenopolis.org
MIT License
31 stars 2 forks source link

cache issues when change between users #251

Closed alanwilter closed 3 years ago

alanwilter commented 3 years ago

I've seen this with Chrome, Firefox and Safari and so far only Safari didn't show this issue.

The real issue here is if a client has more than one user account with different patient permissions, then she/he will have problems visualising the correct data.

@IsmailM @pontikos I don't know if it's a frontend issue or can be addressed by the backend.

alanwilter commented 3 years ago

I did some investigation here and find out this ought to be sorted in the frontend side. We need something to delete all cookies/caches once logout or session timeout.

Another way to see this issue is to be in a, e.g., gene page https://dev-live.phenopolis.org/gene/ENSG00000119685, do a logout and then hit browser back button. User should NOT be able to see the whole page again.

I found this https://stackoverflow.com/questions/179355/clearing-all-cookies-with-javascript but don't know JS enough to tell you if it worths.

alanwilter commented 3 years ago

This issue relates to #250

YuanTian1991 commented 3 years ago

I did not see this issue on dev website, maybe it has been fixed sometime before?