Session Based Web Service

I am trying to call a session-based web service from my Iphone application. However, I cannot get it to work, because the Iphone application does not allow you to have a cookie, which is necessary to store information about the session.

I read the following article, and there seems to be a way to deal with session-based web services, but I can't figure out how this should work.

http://msdn.microsoft.com/en-us/library/aa480509.aspx

+3
source share
1 answer

iPhone cookie. http://developer.apple.com/iphone/library/documentation/cocoa/reference/foundation/Classes/NSHTTPCookieStorage_Class/Reference/Reference.html

HTTP-, ASIHTTPRequest http://allseeing-i.com/ASIHTTPRequest/

Async. .

NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request startSynchronous];
NSError *error = [request error];
if (!error) {
  NSString *response = [request responseString];
}
+4

All Articles