Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How using Cookies Session after sucess login api for next other datarequest? #4

Closed
chuquangbao opened this issue Nov 5, 2013 · 1 comment

Comments

@chuquangbao
Copy link

I found many solutions in Stackover.com and many other blog. But i don't really know How.!
If In Postman i login my api success, it take a sessionid in cookies.
After i countinue to using other api without login! But Android is not.
With your experiences, can you help me? thanks.

@ghost
Copy link

ghost commented Nov 8, 2013

Cookies are generally best used for Web Apps. For consuming APIs, It's best if the server uses an Auth token it sends in the response body, as most APIs do. I might add in cookie support later, but it's not on the cards anytime soon. In case you do need it, you can implement it yourself. An excellent overview of Http cookies is available here.

You can look at the HttpHeaderParser class as a good place to implement this functionality.

@ghost ghost closed this as completed Nov 8, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant