-
Notifications
You must be signed in to change notification settings - Fork 47
Don't Store Blank Session Keys in Redis #37
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
Conversation
Hey @mstruve, sorry it took me a little bit to review this. Refraining from adding blank session data to Redis seems like a good idea to me, but I would definitely like to see a test proving that it works. I'm also curious why you chose to make the change in |
Hey @tubbo, honestly I didn't even look at |
@mstruve that might not always work, since |
Ok, I went back to the drawing board and tried to move the |
@mstruve That makes a lot of sense to me, thank you for diving into this and doing some detective work, because this API (as well as redis-rack's implementation of it) is definitely a little confusing. This all looks great to me, so I'm gonna merge to 'master’ branch. Can you make sure it works by installing on your app like so? gem 'redis-rack', github: 'redis-store/redis-rack', branch: 'master' |
Pointed at master and it works like a charm! Thanks @tubbo! |
glad to hear it! thanks for your contribution, I’ll release in a few. |
Any thoughts on when a version bump will be released? Thanks! |
Sorry about that @mstruve, this totally fell off my radar. I just released it as redis-rack v2.0.5, give it a whirl! :)
… On Nov 8, 2018, at 4:46 PM, Molly Struve ***@***.***> wrote:
Any thoughts on when a version bump will be released? Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#37 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAG5gtQQPYMKik_xi1t9CCG6h8zcLgbBks5utKZEgaJpZM4W046_>.
|
@mstruve Did you notice any kind of session ID collisions as a result of this change? Other users are reporting a potential collision in certain scenarios as a result of this change (since no one ever actually gets to the |
Interesting, we never ran into that issue. |
When doing some testing on our application I found that we were storing a lot of blank session keys in Redis. This seemed like a waste of resources so I updated this method to skip storing the blank sessions.
There was not a specific test written for this method but I am open to writing one if you think it is needed. Thanks!