Here is the situation:
- the client makes a request
- it is followed by AJAX polling
The server needs to keep track of some stuff during this process.
I have been using the Session and it “mostly” works until the user
decides to open another tab in her browser and she makes a new,
parallel request. In this case, the data from the two requests is
merged, which leads to bugs.
This got discussed quite a bit several years back, but I could not
find any recent “recommended” solution to handle this. Does it exist?
I read in this article (http://stackoverflow.com/questions/7570255/
rails-store-unique-data-for-each-open-tab-window) that an option could
be to prefix the URLs, but it seems quite complicated to me.
Thanks a lot!