Sharing Sessions between Ruby on Rails and PHP

Hi there,

I have a RoR app but for one of the funcationality (photo uploads) I
am using PHP. I need to know how I can share/access session
information from RoR in PHP since the PHP also updates the database
and the entry information is contained in the RoR sessions.

Please advice.

Thanks in advance.

Adil

What session store are you using? In all cases i think you'll need to be able to unmarshal ruby objects from php. There are specs out there for the Marshal format.

Fred

Are you set on using PHP? I like PHP but it would be simpler to stay
within rails.

Check out the rails plugin attachment_fu, I used this for photo
uploads and it was really nice.

http://clarkware.com/cgi/blosxom/2007/02/24

i have just edited added a note here to show how i achieved this using
memcached

see http://wiki.rubyonrails.org/rails/pages/PhpSession