perl/PHP sessioning

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hi, I wanted to know how to use PHP sessioning with Perl.

In short, I am using sessioning to keep track of particular variables
between SOAP calls.  The SOAP server is being run with PHP and cannot
be changed to another language because of the PHP infrastructure that
has already been built.  When I use a PHP client, it remembers the
variables.  When I use SOAP::Lite, it does not remember the session
variables.  How can I make Perl interface with PHP's sessioning?
Thank you for any help.

My problem is detailed very well on the PHP forum at

Re: perl/PHP sessioning

On 14/04/2010 23:04, Lee wrote:
Quoted text here. Click to load it

My guess is that you need your Perl client to preserve and regurgitate

Quoted text here. Click to load it

I don't plan on joining a PHP newsgroup - sorry.


Re: perl/PHP sessioning

Quoted text here. Click to load it

Do PHP's sessions use cookies? If so, you might try adding a cookie jar
to track them:



Re: perl/PHP sessioning

Cookies was exactly right, thank you.  Here is the solution that

use strict;
use warnings;
use Data::Dumper;
use HTTP::Cookies;
use SOAP::Lite;# on_debug => sub;


my $cookieFile="./cookie.txt";
my $cookie=HTTP::Cookies->new(ignore_discard=>1,file=>

my $soap = SOAP::Lite
  -> uri(' ')
  -> proxy(' ')

Site Timeline