Archived Forum Post

Index of archived forum posts

Question:

How to Keep HTTP Sessions?

May 23 '13 at 11:36

As part of evaluation of Chilkat http for Android, I successfully tested with different calls to postXML.

A question: Is there any way (procedure) to keep a session on android using http library, because normally in normal html pages/request, one after login establish a session that's used to keep security, and the browser accepts a session cookie, that expires at end of session. How can i replicate or implement that in native android with chilkat http?


Answer

The solution is to use the properties relating to caching and sending cookies. See these two examples:

http://www.example-code.com/android/http_memory_cookies.asp

http://www.example-code.com/android/http_persist_cookies.asp