Sharing session data between Rails and PHP


I have a Rails application that uses ActiveRecordStore for sessions. I need a PHP application running on a subdomain to share the session.

I have updated the environment to allow session cookies to be accessed across subdomains, but I don't know what the php application will have to do to access the session data. Please could someone help me out with the next steps?

Thanks in advance

I believe the best solution would be to turn handling of sessions over to Memcached for both PHP and Rails. If you write a simple wrapper for each (a number available online actually), then you'll be able to access the same data from either application.