Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Are cookies lost between runs?

I'm using a cookie for authentication when my companion app fetches from a web site.  On the simulator, it works perfectly, but running against a real phone with my Versa, the cookie seems to be lost between runs.  Is that correct?  If so, would it be possible to change that?  After all, browsers do remember cookies between runs.

 

Thanks.

Best Answer
0 Votes
2 REPLIES 2

Is it perhaps just being lost when you install a new version of the app? You should be able to persist your values in the local-storage.

Best Answer
0 Votes

No, they don't seem to be preserved between the request in which the server sets the cookie based on a password and the follow-up request when the companion app fetches a resource from the same server.  In the simulator, this worked perfectly, but in real life, even running against the same server, the server doesn't see a cookie.

Best Answer
0 Votes