#10 ✓resolved
Peter Zingg

readme suggestion on "current_user"

Reported by Peter Zingg | November 17th, 2008 @ 08:11 PM

Suggestion for readme:

When talking about the "Or how about persisting the session..." stuff, use the idea frome the part "Automatic Session Updating" to make sure that when the session "object" is destroyed, the current_user_session and current_user get nil'ed out in a :before_destroy callback.

I'm assuming that's the right thing to do...

Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson November 17th, 2008 @ 09:34 PM

    • State changed from “new” to “resolved”

    It really depends on what you are doing after you destroy the session. I redirect the user to the login page, so there really is no reason to nil out the variable because a redirect occurs right after the destroy.

  • Ben Johnson

    Ben Johnson November 17th, 2008 @ 09:35 PM

    But I see what you are saying the docs, I will clarify this. Thanks for pointing this out.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket

Pages