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?

In reply to SOAP and cookies by winfinit

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.