Quantcast
Channel: Questions in topic: "cookies"
Viewing all articles
Browse latest Browse all 91

save cookie after login and use it for login again

$
0
0
Hi , i use this code to login webservice i want to save cookies and login to webservies without user name and password but , i dont know how to save cookies after login ! can any body help me ? thanks void Start() { string urlAdress = URL; WWWForm form1 = new WWWForm(); form1.AddField("username", "username"); form1.AddField("password", "password"); Hashtable header = new Hashtable(); header = form1.headers; WWW www = new WWW(urlAdress, form1.data, header); StartCoroutine(WaitForRequest(www)); } IEnumerator WaitForRequest(WWW www) { yield return www; // check for errors if (www.error == null) { Debug.Log("WWW Ok!: " + www.data); } else { Debug.Log("WWW Error: " + www.error); } }

Viewing all articles
Browse latest Browse all 91

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>