On Jan 13, 5:58 am, icke
<owain.mcgu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I collect some stuff in my application session. I then need to
> redirect to another domain(not subdomain) run by the same ruby
> application instance (as it needs to be an SSL certificate domain). I
> can rebuild my application session bit by bit but it would be DRYer if
> I pass the session_id into the SSL domain as a param on the redirect
> and then "switch the session" to the new domain by invoking a
> before_filter on the SSL protected actions to pull the correct
> session. Set the new cookie and so forth
>
> Anyone any ideas on how to do this or is there already a plugin to do
> this?
You could use single_access_token (API Key) with Authlogic.
Also, if you can get you users to use Chrome or Firefox or Safari you
can use XHR2 / CORS and set withCredentials = 2 and pass the cookie to
the non-origin domain (this also requires setting some headers and
enabling support for OPTIONS).
If that''s what you think you''re looking for and you''d
like me to
detail it a little better I will.
AJ ONeal
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.