small medium large xlarge

02 Mar 2009, 20:22
Adam Pennycuick (1 post)

First of all thanks for this fantastic book, I’ve found it to be an invaluable reference.

I have a question about recipe 83, giving users their own subdomains and domains. I’ve implemented this recipe successfully with one catch - I want session data to be maintained across several subdomains and domains, so that a user can log in at, navigate to and still be logged in with the same account. From your recipe it seems that each domain will have its own session (unless I’ve done something wrong?).

Is the above possible? I understand that it’s quite a difficult thing to implement, due to the requirement that cookies can’t come from a different domain, but I’m sure it must still be possible - perhaps by using ActiveResource to send data between the domains. Do you have any ideas on this? It might be a good one for Advanced Rails Recipies 2!

Screen shot 2016-02-29 at 16.55.11_pragsmall
14 Dec 2009, 18:49
Bob (6 posts)

please take a look at: RubyCAS-Server is an implementation of the server-end of JA-SIG’s CAS protocol, providing a cross-domain single sign-on solution for web applications.

You must be logged in to comment