hi guys
i am having an issue with cookies, here is what i am doing
my $cookies = HTTP::Cookies->new(ignore_discard=>1, file=>'/tmp/cookie
+', autosave=>1);
$soap->transport->cookie_jar($cookies);
$soap->call($SessionLoginTechnicianMethod => @SessionLoginTechnicianVa
+lues);
$soap->call(SOAP::Data->name('SessionLogoutTechnician'));
here is what i am trying to do, i need to login, and after i am doing so
i am getting cookie back, so then i am using that cookie in my next calls,
but cookie is not getting saved untill the end of a script, so if jar is
empty at the moment, the i do first call, and i can see in trace that
session id is issued, but not getting written into a file, (i know that,
because i did sleep 10; and did cat on /tmp/$cookiefile and i can
see no cookie in there, then my next call obviously not using cookie
that was issue, but rather using old cookie (ifi am not clearing jar) or
if jar is clear no cookie at all.
how do i save issued cookie right away, and load it into transport, so it
will be used in my next calls?