RE: [PHP] Sharing session data with Perl

From: Date: Tue, 10 Jul 2001 02:52:02 +0000
Subject: RE: [PHP] Sharing session data with Perl
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57056@lists.php.net to get a copy of this message
I thought of this, but have the following reservations: 1. It seems cleaner to implement this on the Perl side since it will be a fairly uncommon requirement. 2. I don't like to mess with working applications (other session-enabled PHP apps on the server). 3. I have as yet been unsuccessful in coming up with the right voodoo to get ini_set and it's associates to work in a consistent manner (in order to affect just this application). Of course, I haven't tried with "session.serialize_handler", but I have no reason to believe it will work consistently given my experience with trying to mess with ini_set in other contexts ("sendmail_from" comes to mind). 4. WDDX as a session serializer is likely significantly less tested than the native serializer, and this is not the type of application where I can afford to be a beta tester. 5. I'd rather not incur the additional overhead that WDDX will likely institute if I make it my default session serializer. Thanks for the quick response. Al > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmus@php.net] > Sent: Monday, July 09, 2001 9:47 PM > To: Alok K. Dhir > Cc: 'PHP General (E-mail)' > Subject: Re: [PHP] Sharing session data with Perl > > > > 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 > >

« previous php.general (#57056) next »