Anyone know whether the scope of Rails Sessions can cross multiple web
applications?
Can I build my user management (registration, authentication, managing
roles, profile management) in a single rails web application and to be
shared with other web applications? (assuming they are deployed on the
same hosted server)
If yes what would be the constaints? Would the web applications have to
share the same domain name? Could sub-domains be used for each web
application, or would all the apps have to be in the same domain
specifically (c.f. use of sub-domains). That is could I have http://app1.mydomain.com/, and http://app2.mydomain.com, and http://usermanagement.mydomain.com?
Do your apps share the same database? If so, then it sounds pretty
easy.
You’d want to make sure that your cookie scope is set to use the entire
domain rather than just the host (domain.com instead of user.domain.com),
and the cookie can be used on any app within that domain scope.
Tks Michael - would this be a manual activity I’d have to do (i.e. this
wouldn’t work by default?). I could use the rails cookie mechanisms
then I
guess?