tags:

views:

49

answers:

1

In my iPhone app, every time I relaunch my cookies are cleared. This is using the NSURLRequesst and NSHTTPCookieStorage. And no, they are not session only cookies.

How can I get NSHTTPCookieStorage to keep my cookies around, and if I can't, what is the proper way to store them (preference, keychain, etc.).

+1  A: 

Edit

http://log.scifihifi.com/post/55837387/simple-iphone-keychain-code

zinc
I am storing login credentials. Hence my hesitance to use the user defaults. I read somewhere about storing cookies in the keychain, but I can't seem to find it.
David Beck
Ah I see, yes this would need to be stored in the Keychain, i updated my answer.
zinc