Page 1 of 1

Session between html url request

Posted: Fri Dec 18, 2015 1:03 am
by francis6425
Hi,

I understand that we can get data back from a web page using put url, load url and post to url command.

If using a normal web browser, I can get the web page to return the session variable back.
However using the above commands directly without any browser it is always starting a new session and I'm unable to persist session variable in between separate put, load or post command.

Can any experts please advise.

Regards,
Francis

Re: Session between html url request

Posted: Sun Dec 20, 2015 5:46 pm
by SparkOut
Is this for desktop or mobile?
If mobile, you're out of luck. Otherwise look up libUrl... and see how you can catch the headers returned, parse the cookies and set headers to include cookies for maintaining the session with the next request. If I wasn't on mobile phone now I would add more refs and links to some threads in this forum, but you should be able to search for some useful things here

Re: Session between html url request

Posted: Sun Dec 20, 2015 5:56 pm
by SparkOut
This thread http://forums.livecode.com/viewtopic.php?f=104&t=25226 contains a post with a link to another post with info.

Re: Session between html url request

Posted: Sun Dec 27, 2015 11:50 pm
by francis6425
Hi SparkOut,

Yes, for my case it is for mobile.
Thanks for your advice and I will have to use alternative way to do it.