Skip to content Skip to sidebar Skip to footer

Handling Session Cookie In Android Volley

For those unfamilar with Volley its a networking library and,it will switch its http request client from HttpUrlConnection or HttpClient depending on android version, so one thing

Solution 1:

Take a look at my answer on the other question you linked. By specifying the HttpClient for Volley to use, it will only ever use that one for connections. Thus obviating the need to set cookies on both.

Solution 2:

For handling session cookies, I use CookieManager and a own implementation of CookieStore. Here I show a implementation of this, storing the cookie in SharedPreferences

Post a Comment for "Handling Session Cookie In Android Volley"