IPhone URL'ye bağlanıyor ve php oturumu ısrarcı

1 Cevap php

Ben bir php komut dosyası veri gönderir ve alır bir iphone uygulaması var.

I would like to connect to that script once, save some data into a $_SESSION variable. Then on subsequent calls be able to retrieve the content of that $_SESSION vars.

Bu mümkün mü?

Teşekkürler

1 Cevap

Evet, birden isteklerini yapmak için URLConnection yeniden gerekir. Örneğin tek bir isteği giriş ve sonra veri istemek için bir talebiniz gibi. NSURLConnection doğru olanı yapacak ve canlı PHP oturumu tutacak şeyler çerezler, takip edecektir.