Hello everyone, I'm looking for some expert advice here.
Currently I have a working WWW call to login to a website
public IEnumerator Login()
{
WWW www;
WWWForm form = new WWWForm();
form.AddField("player", username);
form.AddField("password", password);
www = new WWW(WEBSITE + "/authenticate.php", form);
yield return www;
ProcessHeaders(www.responseHeaders);
isLoggedIn = true;
ScanHTML(www.text);
}
I already expected that if I wanted to visit another page (meaning another WWW call) via my app and logged in, I would have to store and send some session cookies.
The problem is that the website appears to rely on the 'PHPSESSID' cookie to stay logged in, which I cannot find in any WWW return variables (like responseHeaders).
Any ideas? Ill be checking back frequently if more information needs to be posted.
↧