Re: Sharing session data with Perl
| From: | Rasmus Lerdorf | Date: | Tue, 10 Jul 2001 01:46:40 +0000 |
| Subject: | Re: Sharing session data with Perl | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57054@lists.php.net to get a copy of this message | ||
> Is there a published spec of the format of the session data string?
>
> It would greatly simplify one of my applications if I could share data
> between PHP and Perl using sessions. Since I use MySQL to store session
> information, it would be trivial for me to make a call to a Perl script
> with a session id, and, within Perl, grab the session data, parse it,
> use it, perhaps even change it, and then return control back to my PHP
> application.
>
> So, if I knew the exact format of the data string, I could avoid having
> to try to guess at its structure, and write a Perl routine to decode it
> and store it in a session hash...
>
> Has anyone tried this before?
I would use the WDDX serializer if you are interested in cross-platform
sharing of the data. In your php.ini file use:
session.serialize_handler = wddx
Then use the WDDX Perl module to decode it in Perl.
-Rasmus