My app uses google authentication to login against an app engine backend. When i successfully log in my DefaultHttpClient gets a cookie from my App Engine domain, i was wondering if it were possible somehow to persist this cookie and then reapply it in the case of the app starting again at a later point to save from logging in every time the app starts.
Share
Yes, you can. In Android, I used App Engine Client to authenticate with app engine app and use
HTTPConnectionto set CookiemCookie is stored in SharedPreferences after you login success.
Note: In my project, Using other method(eg. HttpClient) to set cookie for each request was difficult and when I use HttpURLConnection it works well.
Tips: You should use Appstats for debugging this to see if the cookie is actually sent to the server.
Good luck