Search code examples
ruby-on-railsrubydeviseruby-on-rails-4.2spree-auth-devise

User should login in only three device from one account


I am using spree application with devise gem

We are not getting how we could implement user should login in only three devices at a time with the same account. Can anyone help on it? I am using rails4 with gem 'spree', '~> 3.1.0'


Solution

  • rails provide different option to store the session. http://guides.rubyonrails.org/action_controller_overview.html#session

    you can use below gem:- https://github.com/rails/activerecord-session_store