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

Race condition handling #94

Open
rtrv opened this issue Aug 28, 2017 · 1 comment
Open

Race condition handling #94

rtrv opened this issue Aug 28, 2017 · 1 comment

Comments

@rtrv
Copy link

rtrv commented Aug 28, 2017

I've been investigating problems with flashes and figured out that redis-session-store doesn`t provide any handling of concurrent session changes. The problem is overviewed well here: https://paulbutcher.com/2007/05/01/race-conditions-in-rails-sessions-and-how-to-fix-them/
The solution from this article is outdated.
We use redis-session-store and we like it, but in case we have a lot of AJAX there are some problems. I think, if it's a common issue, I could work on improving this gem using concepts from outdated solution. There is no problem without concurrents requests, so such behaviour could be optional for gem user.

@vovanmozg
Copy link

This is still a problem today

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

No branches or pull requests

2 participants