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.”
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.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.