Hi!
How do you make authenticated sessions with network request() in Corona?
Let’s say I run: network.request(“http://example.com/?action=login&username=abc&password=123”, “GET”, listener);
The server would return: Set-Cookie: PHPSESSID=; path=/
However, there is no mechanism in Corona to read HTTP headers from network responses AFAIK. (Correct me if I’m wrong!)
The best idea I’ve come up with is to return the session ID as part of the normal response body, and then pass it to the server for subsequent calls using the params argument in network.request()
What is the best practice in this situation?
[import]uid: 73434 topic_id: 31964 reply_id: 331964[/import]
