0

Title pretty much speaks for itself. Is there a simple way to do this? I was thinking of just writing the data stored in the session variable to a temp file then having the ruby script read the data from the file, but that seems kind of dumb. Is there a better way to do this?

1
  • Well, that's exactly how PHP sessions work by default: using temp files. Commented Jun 23, 2011 at 7:41

2 Answers 2

1

This question seems to have been already addressed: Sharing a session between Ruby and PHP

Sign up to request clarification or add additional context in comments.

1 Comment

I saw that thread and was hoping there was a simpler way, but it doesn't sound like there is... I'll check it out.
0

IMHO, the cleanest mechanism would be to write a custom PHP session handler that:

  • Stores data to a database (rather than files)
  • Serializes data to a format known by Ruby, possibly JSON

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.