Unless you 1) know how the session_var is generated on the other server side, or 2) collect enough legit session_vars to determin the method of generation (brute forcing it), there's no way of doing it, particularly if session_vars include time information in addition to userid and state.

I would also advice some potental caution given that you seem to be trying to go at an e-commerce site that is not yours; not only have courts ruled in favor of e-commerce sites to prevent 'bots' from collecting the same information but in a different display as with Ebay and meta-auction search engines, but I can see a whole host of other problems related to AUPs, the DMCA, and more in trying to decipher that session_var even for a legitamite use. One good example for your case: imagine if you could figure out the session_var structure, and it only stores the userid as a way to identify the user. Since you're playing with a shopping bag application, you could theorhetically maliciously fill any user on the site with goods they don't want via this remote script, and cause a lot of harm. I'm not implying that you're trying to do this here, but there's potental for abuse if your script got into the wrong hands.

Basically, I'd avoid trying to do anything automated with sites or scripts that involve finacle transactions in any way, as it could do more harm than good in the end.


In reply to Re: trouble with LWP::UserAgent by Masem
in thread trouble with LWP::UserAgent by juerchen

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.