Devise - Restrict multiple sessions for same user

2019-05-30 17:59发布

问题:

I have a subscription based app, charged on the basis of number of users added.
I want to restrict users to single session.
How to implement it. I am using devise for authentication.

Thanks..

回答1:

There is a devise extension with session limit support

https://github.com/phatworx/devise_security_extension