开发者

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

开发者 https://www.devze.com 2023-04-11 06:10 出处:网络
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 c

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

精彩评论

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