1

i want to ask on every api call i make i want to set cookie jsession id. How can this be done in android? I am ussing httpget, also answer for httppost would be nice as well

thank you

user3278732
  • 1,694
  • 10
  • 31
  • 67
  • Have you tried setting the headers? – hoomi Sep 12 '14 at 14:39
  • You cannot set session using http requests or http client APIs , because this is a usually a server side issue to track your session. But you can use or read the jsessionid if using apache http api , specifically i you use CookiesManager or CookieSorage – Muhannad A.Alhariri Sep 12 '14 at 18:48
  • See: http://stackoverflow.com/questions/13413839/how-to-manage-sessions-with-android-application – Amir Kost Jul 19 '16 at 13:04

0 Answers0