Re: Re: Ensure single session per user

Xavier Noria
2010-02-17T18:23:34Z

On Wed, Feb 17, 2010 at 7:03 PM, Nick Gins
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:

> Any code examples available?  Any links for me to checkout their method?
> Hopefully it''s simple with Restful Auth.

You basically need to create a Session model to manage the existing
sessions table with AR.

Then, write a filter that implements that logic I explained in the
previous mail. Put that filter after the one that checks for logged in
users, so you have a current_user.

If you redirect upon a successful login you''re done (modulus this is
all off the top of my head).

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.