开发者

Best Practice/Pattern for iphone login session

I need a recommendation on how to implement a login session for iphone + web service.

Do I generate a token and pass that token every time I mak开发者_StackOverflow中文版e a request to the web service?

  1. Login
  2. Get token
  3. Send token to server with every request.

    • Token will expire in x-minutes

Would this be a common implementation?

please advise


That sounds like the basic idea. There are of course other options. The RestKit discussion board example does it pretty well:

https://github.com/RestKit/RestKit/tree/master/Examples/RKDiscussionBoardExample/DiscussionBoard

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜