r/simpleios • • Jul 01 '15

iOS persistent Login

I need to keep my users persistently logged in to my app. I have the php side of it working but have no idea how to save the php cookies in the iphone for authentification. How would I save these cookies through obj c?

1 Upvotes

34 comments sorted by

View all comments

Show parent comment

4

u/brendan09 Jul 01 '15

Your intuition is correct. See my response. You should be using Keychain or NSURLCredentialStorage, and persistent tokens (or rotating tokens) instead of cookies.