I am developing an application that includes activity and the main activity of logging in. If the user first registered, the application saves the username and passes it to sharedPrefs. And at the next start, the login activity uses this username and password, if the server returns true (in xml, getEntity) the main intention of the activity begins. After logging in, I want to interact with the web page using the cookies set in the login login. As far as I browse the internet, they say that I should use the same httpclient so as not to lose cookies. I tried, but could not handle it. So, can I use cookies without using the same httpclient?
The general logic of my application:
httpclient.execute("http://www.abc.com/index.php?process=login&user="+variable1+"&pass="+variable1); //here I get the entity of this response and I parse that return value, after that, if(login==true)--> go on... //here I have to read all page from website which is protected by user authentication(by cookies).(ex:index.php?process=getmymessages) //But I did not manage that. At this point what is your suggestions?
Thanks in advance!
source share