Surprisingly I did not find an answer or a lesson in Russian on this topic.

  1. On the php server, I generate a cookie, how do I transfer it and receive it in a java application on Android?
  2. Where to store it in the application?
  3. How will she hook up to requests?
  4. I use the OKHTTP library in some queries, how can I tell it about the cookie?

1 answer 1

It all depends on the library you are using as an http client. Either cookies handles to ask from the headers, or they are saved in a variable. Similarly, back, some of them, such as a soldered http client, as far as I remember, they will do it themselves if you do not kill the object from the clients. If you use something like natty, then handles to transmit to the headers. So it all depends on the library.