In my Android Project I was using old apache library for networking operations. There I used the BasicCookie() in HttpContext for maintaining sessions across the https calls. Now Google has deprecated the Apache Library and So I switched to URLConnection for networking. But I am not sure how I can set cookie in HttpsUrlConnection to maintain the session across the https calls. How can I set the same functionality in HttpURlConnection also.
I tried all these from this post, but didnt help. How to handle cookies in httpUrlConnection using cookieManager