NLeSC / spot

Try the demo
http://www.idarksurvey.com/
Apache License 2.0
22 stars 11 forks source link

If you open a session from a link, all following sessions have a broken result from the database connection #191

Open doc-l opened 5 years ago

doc-l commented 5 years ago

STR:

  1. Open session from link
  2. Open idarksurvey
  3. Click connect to database
  4. Only the session you had in the session link is visible (even when you visit from incognito)
doc-l commented 5 years ago

Restarting spot-server fixes it, but if one person opens a session from a link, SPOT is broken for all people until the server is restarted...

fdiblen commented 5 years ago

In order to fix this issue, we need persistent storage for sessions. The sessions should either be stored in local storage of the browser or in the database.

Probably the most straight forward one is to use local storage.

doc-l commented 5 years ago

Hi Faruk,

Not sure if I typed this correctly. It goes like this:

Person A shares link Person B opens link Person C cannot access database anymore (neither A nor B) until the server is restarted.

So that SPOT breaks for all users when one person opens a session is a feature?

It's a session, so I agree that localStorage (or maybe better sessionStorage) is best.