Choosing the Right Rails Session Storage

I am currently using memcached based session storage ( https://github.com/mperham/dalli ). From time to time, the memcached server is unavailable ("No access to the server"), and then my users can no longer use the application. Currently, I doubt that the memcached solution is the right solution.

Since I store very few keys in the session, I am thinking of going to the cookie store. Or should I use ActiveRecord storage? Any tips?

Thank!

+3
source share
1 answer

If you store multiple keys in a session, I obviously think you should go to the Cookie store.

.

: http://guides.rubyonrails.org/action_controller_overview.html#session

+8

All Articles