Ruby on Rails Thursday, December 23, 2010

On Dec 22, 10:36 am, Hitesh Rawal <li...@ruby-forum.com> wrote:
> Hi,
>
> I am using devise 1.0.8, and I want to restrict concurrent login of user
> i.e. same user should not be login from different browser or different
> location if he already login from some where.
>
> and if he really wants to login forcefully then other side sessions for
> that user should be clear and he should be logout from other sides.
>
> Any help would be greatly appreciated.

Clearance does this:

https://github.com/thoughtbot/clearance/wiki/concurrent-sign-in

In principle you should be able to do the same thing in Devise (reset
the authentication token on each signin).

--Matt Jones

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment