Sharing session variables between apps

Hey everyone,
I have two Rails applications on a production server. I’d like to
share session variables between them (mostly for authentication
purposes). Since both apps are using the database for sessions, I’m
thinking this should be possible. Anyone know how this could be done?