is it possible to share session data between 2 separate rails apps So, for example, You can login once and your session is recognized by the other app as well? I tried just sharing the session cookies but it seems like some session data is also cached. I get this error in my development.log file: "Session contains objects whose class definition isn''t available. Remember to require the classes for all objects kept in the session." thanks in advance -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
The Problem is that you store whole objects in your sessions, like many user auth plugins do: @user = User.find(:first, :condition => blablabla) session[:user] = @user So, you would have to share that User Model .rb-file in all your apps, because there''s an object in the session that is derieved from that Class. If you can change your app to only store actual data (e.g. only store the user''s ID (and group name or whatever) instead of the whole object, that error should not come up again. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Check out this link: http://dotrb.com/articles/2007/01/11/mongrel-and-simple-rss-makes-great-duct-tape I had a project that had a similar requirement and i used simple rss and mongrel to wrap things together. Its not really a session between two apps, but it might give an idea.. Good luck. On Jan 30, 3:47 am, Jimmy <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> is it possible to share session data between 2 separate rails apps So, > for example, You can login once and your session is recognized by the > other app as well? > > I tried just sharing the session cookies but it seems like some session > data is also cached. I get this error in my development.log file: > > "Session contains objects whose class definition isn''t available. > Remember to require the classes for all objects kept in the session." > > thanks in advance > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---