I don't have time to dig into the source at the moment, so would you mind briefly explaining the strategy you used? Specifically how does it differ from the approach taken at Using Sessions between perl and php., which (at the time) seemed rather inefficient to me.