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

On 7 Feb 2008, at 18:23, Adil M wrote:

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.

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

On Feb 7, 9:25 pm, Frederick C. [email protected]

On Feb 8, 2008, at 7:23 AM, Adil M wrote:

Thanks in advance.

Adil

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

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