help! Some problem with the incorrect url.

There is a website that it always keep a session id in it's url.
And,generally,one session keep activated for a certain duration.
when the url contain a session id ,it won't work again after the duration.
I think there is something with cookies,but don't really know why?

Pls help me to solve this problem .
Thank you!

help! Some problem with the incorrect url.

Hi,

This is a pretty common scenario. The URL might look something like this:


http://www.foo.com/mypage.php?sessionid=3lkj3jflkjf32

To handle this with screen-scraper, you first need to request a page that will contain the session ID, so that it can be extracted. For example, you may request a page containing this snippet of HTML:

Within screen-scraper, you would request the page containing the snippet of HTML, then extract the session ID using the following extractor pattern:


You would want to save the value of the "SESSIONID" token in a session variable by double-clicking the "~@SESSIONID@~" token, then checking the box labeled "Save in session variable?" Subsequent to that, you could then use the session ID in URL's like so:


http://www.foo.com/mypage.php?sessionid=~#SESSIONID#~

Hopefully that helps. Feel free to post a reply if I can clarify anything.

Kind regards,

Todd Wilson