Since PHP4 sessions rely upon cookies (unless you set it to automatically add a session id token to all URLs it generates), you need to have your UserAgent keep track of the cookie that the php code sends to it and looks for every access during said session. Try using a cookie jar.
use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Request;
use strict;
...
my $userAgent = LWP::UserAgent->new;
my $cookie_jar = HTTP::Cookies->new;
$cookie_jar->clear;
$userAgent->cookie_jar($cookie_jar);
...
Hope this helps.
antirice The first rule of Perl club is - use Perl The ith rule of Perl club is - follow rule i - 1 for i > 1 |