开发者

iOS: session + changing IP-addresses; how to handle it on the client?

in my iPhone/iPad-app I've got to deal with a server which determines sessions (not only, but also) according to the IP-address. The problem now is that with some providers, the phone's IP address changes after a few seconds and therefore the server can't recognize the session any more.

Is there any way to handle this on the client and "help" the server to stay开发者_JAVA百科 unchanged without configuration changes? Or is it only possible serverside?

I'm not using a library (ASIHTTP-request, e.g.), but only NSURLConnection.


Nope, nothing you can do client side. You will have to configure the server to accept session ID only.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜