Session between html url request

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
francis6425
Posts: 15
Joined: Tue Aug 18, 2015 6:48 am

Session between html url request

Post by francis6425 » Fri Dec 18, 2015 1:03 am

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

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Session between html url request

Post by SparkOut » Sun Dec 20, 2015 5:46 pm

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

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Session between html url request

Post by SparkOut » Sun Dec 20, 2015 5:56 pm

This thread http://forums.livecode.com/viewtopic.php?f=104&t=25226 contains a post with a link to another post with info.

francis6425
Posts: 15
Joined: Tue Aug 18, 2015 6:48 am

Re: Session between html url request

Post by francis6425 » Sun Dec 27, 2015 11:50 pm

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.

Post Reply