In our application we just generated a unique session id on the backend and saved that in a cookie in the browser. So when you open the app again it sends that session id and the backend looks it up in the valid sessions to find the user.
However, it seems that the lifetime of cookies is not working correctly for us as sometimes it remembers the login and other times it does not. So I'm curious as well to see how people are doing this. David On Jan 19, 8:24 am, anabillo <[email protected]> wrote: > Hi all : > I just finished implementing my first iPhone application , everything > went well, now I need to supply a sort of security to my application > and I don't know what is the best way to do that ? Currently it works > like this : the user enters his user name and password , the server > verifies that this is the correct information , when I made another > request to the server it asks for a user name and password so it > returns to the method named didReceiveAuthenticationChallenge. I > provide the user name and password again , the server verifies that, > and sends the request again. my questions are : Is this a correct > behavior? is there any kind of session for iphone? And how can I use > cookies to save user name and password ? > > thanks for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
