keeping network sessions on android

Hi, all, 

I am currently developing an app which will connect to the custom web server (built in ruby on rails). 

It will first authenticate, then when it succeeds, it will proceed to get the list of items by json encoding. Rails keeps the id of the user, so id that was used in authentication, in sessions hash. If sessions[:user_id] is nil, the list will not be sent.

Now, the problem is, iOS can keep up sessions easily, and it works smoothly, but Android fails to recognize the session even after successful authentication.  I tried looking up sessions in Android to no avail.  Is there a way to maintain the session for apps built for Android? If there is a solution, please let me know. I was thinking about authenticating on every single request, but that would be inefficient.

Thanks for your help! 

I am facing similar issue. The backend server uses Spring SecurityContext class to keep login session. My app works on iOS properly, but on Android the session is lost somewhere.

Referencing this:

http://stackoverflow.com/questions/3039137/maintain-cookie-session-in-android

I use network.request( “login url”, “POST”, networkListener, params)

Do subsequent network.request() calls use same HttpClient instance or is it created anew? Can someone from Corona engineering team shed some light on this? Any recommended alternatives to get around this problem?

Thanks!

Kapil

I am facing similar issue. The backend server uses Spring SecurityContext class to keep login session. My app works on iOS properly, but on Android the session is lost somewhere.

Referencing this:

http://stackoverflow.com/questions/3039137/maintain-cookie-session-in-android

I use network.request( “login url”, “POST”, networkListener, params)

Do subsequent network.request() calls use same HttpClient instance or is it created anew? Can someone from Corona engineering team shed some light on this? Any recommended alternatives to get around this problem?

Thanks!

Kapil