in reply to Perl and PHP interoperability

I once had to make a Perl CGI read a PHP session data (stored in a file in /tmp) so I used PHP::Session. You could also use a database to store the session variables and specify a custom session handler in the PHP scripts.