I am working on a app using web services calls.
I am calling my Login webservice as follows
String url = "http://mydomaim.com/login.php";
UserFunctions userFunction = new UserFunctions();
JSONObject json = userFunction.loginUser(userEmail, password, url);
It works fine and send me response as show below
{
"userName":"a",
"login_success":1,
"user_id":"3",
"session_id":"1067749aae85b0e6c5c5e697b61cd89d",
"email":"a"
}
I parse this response, and successfully and got the session id in a variable. Now I have to call an other webservice appending this session_id as cookie value.
QUESTION
How to store the session_id
as the my cookie value in my Android device and call other web service?
You can try something like this:
It works for me.
Try this, When login Call this request.