in reply to Re: WWW Mechanize not keeping session?
in thread WWW Mechanize not keeping session?

Corion

I think I've jsut figured it out, you mentioned other frames, and that made me think. I double checked with the web-page itself, and it is indeed made up of two frames, and guess what, the Session id in the seperate frames are different!!

I have no idea what to do with the different frames, or if it does make a difference that they have their own session ids. Since I can't get that far with HTTP::Recorder, what should I do?

Thanks
Sam

  • Comment on Re^2: WWW Mechanize not keeping session?

Replies are listed 'Best First'.
Re^3: WWW Mechanize not keeping session?
by Corion (Patriarch) on Oct 05, 2004 at 15:51 UTC

    Trace and record your browsing session with HTTP::Recorder, or with any other logging feature, like the Live HTTP Headers. Then trace and record the session as your script produces it. Then look at the differences and eliminate them.

    Most likely, you are using the wrong session ID, or are extracting the wrong cookie or something like that, but without looking at your script, the site you are trying to automate, and your successfull browser session, that's hard to tell - and if you have all three at your disposal, it's easy to see the differences, for example with the diff utility.

    I have no better help to offer you, because all the automated tools already have failed, and thus you will have to do the task manually.