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!