开发者

How can I handle authentication in android for a remote website?

I know I'm going to need authentication within an Android app I'm working on that will control shoutcast/icecast streams through an API.

What would you recommend?

Would it be easier to store the authentication within the app itself while a session is going on or rather have the us开发者_运维问答er login each time?


Whenever they start the app authenticate them and return a cookie from the server. With every request they make send the cookie and make sure they are still authenticated. Set the expiration on the cookie to whenever you desire.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜