--
You received this message because you are subscribed to the Google Groups "Authlogic" group.
To post to this group, send email to auth...@googlegroups.com.
To unsubscribe from this group, send email to authlogic+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/authlogic?hl=en.
-Larry.
1. http://segment7.net/projects/ruby/drb/introduction.html
There is one process that interacts with the db/authlogic, and
provides an object via DRb that has current_user and current_session
methods. These methods take a Rack env variable.
When a request comes in to an application, the application marks the
env[:cookies] and env[:session] objects to not be copied (ex:
env[:cookies].extend(DRb::DRbUndumped)), then calls
current_session(env) over DRb
Back in the authlogic daemon, the env is wrapped to act like a
"controller" that authlogic lets you set via
Authlogic::Session::Base.controller = your_controller_object
When authlogic saves the session into the session, or into the
cookies, because those are DRbUndumped, the parameters get sent back
to the application. So, the cookies won't be shared, but both cookies
will have the same persistence_token.
I hope that helps.
> Could you clarify if you wouldn't mind :)
>
> Cheers,
> Jordan
>