开发者

How to manage sessions in web-driven Iphone Application

I am Making an Iphone application which is web-servi开发者_开发知识库ce enabled. Also I have skeleton of this application.I am using rest to feed the contents of view controllers. When application is launched it is presented with Login page asking username and password. Clicking Login button sends request to server and in response xml data is fetched. Then I parse this data to get user logged. But i dont know how will i manage sessions,and how clicking logout button will end this session. This application is most-like RSSFeeder,means user gets real-time data. Any help would be greatly appreciated.Thank You All.


As it seems obvious you are using REST connection,you need not take session in consideration. just feed your username and password and other stuff in the URLRequest and make connections. You can also use Setting perferences in settings.Bundle to autofeed your URLRequest.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜