1

Following the answers to this question (Using cookies with Android volley library), I was able to handle to cookie for a single Activity (let's call this Activity Login). Is there a way to handle the cookie for different activities (e.g. I have an activity User_Activity that needs the session-cookie to make a request to get more data on the user) ?

Thanks.

Community
  • 1
  • 1
Joachim
  • 134
  • 1
  • 1
  • 8
  • The cookie store is persisted in the application level, not the activity level according to that answer. What problems are you running into? – OneCricketeer Feb 15 '17 at 23:43
  • When I make another request, I have an error 500, which is equivalent to the lack of session. I don't have a clue about how to solve that. I did not understand neither where I was supposed to set the cookie manager. – Joachim Feb 15 '17 at 23:46
  • 500 is "internal server error", nothing to do with cookies... And I'm not sure why you linked to that particular answer when there are others there. – OneCricketeer Feb 15 '17 at 23:53
  • The way the server is coded, the error 500 comes from the lack of cookie. I did not code the server, but that's what I have to work with. – Joachim Feb 16 '17 at 00:01
  • Alright, can you please show the code you have for your single activity with an [edit]? – OneCricketeer Feb 16 '17 at 00:03

0 Answers0