Sharing session data between apps

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

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.

Check out this link:

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.