i am working in android and php. i called APIs which are coded in php.
I want to manage a session between this android application and php APIs.
means i want to protest a user who directly call my api by entering url of my API in address bar. whenever user loggedin in my android application then one session should be created on php side. so whenever call any APi then that session value should be checked first, then according to user verification, API should be allowed to valid loggedin user only.
I am using this line of code:- DefaultHttpClient httpClient = new DefaultHttpClient();
I dont have any idea how should do this. Please help me in this. You may provide me suitable link but please tell me related content only so my time wont waist.
Thank you in advance.