I have a iOS app which talks to a ASP.NET web app hosted in Azure. I use the Azure authentication to provide a social login to Users from Google, Yahoo, Facebook, etc.
The problem is that if I kill the App, then I lose everything and I need to login again.
Is there anyway I can retain the cookies for the browser control within my iOS app so that, once a user logs in, as long as the cookies remain unexpired, they don't have to login again?
There must be someway to prevent users from having to login multiple times just because they killed the app or restarted the phone, etc.
Is there some way to uniquely identify the phone from iOS which I can save on my server and lookup? - some kind of anonymous ID which I can get from javascript and pass to the server using AJAX call?