views:

119

answers:

1

Hi, I have an application that sends you to one website that shows a login form.

I've read up on cookies from the apple reference (http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPCookie_Class/Reference/Reference.html#//apple_ref/occ/instm/NSHTTPCookie/initWithProperties:)

I'm honestly just not understanding this at all.

Can someone please explain how to get cookies working for an app? Post sample code?

Thanks.

+2  A: 

Here is a helpful Blog entry including a sample code using Cookies in Cocoa Applications:

http://www.calaresu.eu/2009/06/20/using-cookies-with-cocoa-nshttpcookie/

favo
ty for the link, is very useful :)
balexandre
Thanks, I will be looking at this tomorrow in detail.
Aakburns
Can you give a full demo of how to setup cookies with a UIWebView? I'm extremely lost here still.
Aakburns