Watsonbox

Developer's notes.

Fork me on GitHub

Rails & PHP Session Sharing #2

Back in May I posted on how I set up shared sessions between Rails and a legacy PHP app. Since then I’ve upgraded memcache-client to Mike Perham’s replacement, Dalli. I took this opportunity to tidy up the PHP session store as well. Here is what I have now:

This is cleaner than what I had before and should be much more resistant to changes in Dalli, too.

Comments