2

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'

Arvind
  • 2,671
  • 1
  • 18
  • 32

2 Answers2

1

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

Arvind
  • 2,671
  • 1
  • 18
  • 32
kaushal sharma
  • 231
  • 2
  • 7
0

Try controlling how many active sessions a user can have, here is a rundown using Devise: Devise limit one session per user at a time

Community
  • 1
  • 1
medright
  • 138
  • 10