Ruby-on-rails – Choosing adequate Rails session store

cookiesruby-on-railssession

I am currently using a memcached-based session store ( https://github.com/mperham/dalli ). From time to time the memcached server is unavailable ("No server available"), and then my users aren't able anymore to use the application. Currently I have doubts if a memcached-based session is the right decision.

Since I only store very few keys in a session I am thinking about switching back to a cookie store. Or should I consider using an ActiveRecord store? Any advice?

Thank you!

Best Solution

If you are storing few keys in the session, I clearly think you should go for a Cookie store.

For that basic need it's easier to maintain.

The guide has some advices on it: http://guides.rubyonrails.org/action_controller_overview.html#session