Rails Session Sharing with pickpocket.rb
There’s a how to video site we work on called MindBites that’s built in Rails. It has a pretty large feature set, but every once in a while we come across something that could be better handled by something else. Something like a fastcgi’ed PHP process or what have you. Since we’re using nginx on the front end we can easily send one subdirectory one way and everything else to Rails. Unfortunately when you start spreading your functionality like this you start running into issues trying to share session data. We managed to come up with a quick hack that’s kind of clever and I hope will be of some use to folks.
The latest project from Polycot Labs is an update to the 