Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Thanks for the pointer Alex! To add to this I will drop in my "cookie dumper" that I created using Alex's example. Maybe this will help someone else.</p> <pre><code>- (void) dumpCookies:(NSString *)msgOrNil { NSMutableString *cookieDescs = [[[NSMutableString alloc] init] autorelease]; NSHTTPCookie *cookie; NSHTTPCookieStorage *cookieJar = [NSHTTPCookieStorage sharedHTTPCookieStorage]; for (cookie in [cookieJar cookies]) { [cookieDescs appendString:[self cookieDescription:cookie]]; } NSLog(@"------ [Cookie Dump: %@] ---------\n%@", msgOrNil, cookieDescs); NSLog(@"----------------------------------"); } - (NSString *) cookieDescription:(NSHTTPCookie *)cookie { NSMutableString *cDesc = [[[NSMutableString alloc] init] autorelease]; [cDesc appendString:@"[NSHTTPCookie]\n"]; [cDesc appendFormat:@" name = %@\n", [[cookie name] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; [cDesc appendFormat:@" value = %@\n", [[cookie value] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; [cDesc appendFormat:@" domain = %@\n", [cookie domain]]; [cDesc appendFormat:@" path = %@\n", [cookie path]]; [cDesc appendFormat:@" expiresDate = %@\n", [cookie expiresDate]]; [cDesc appendFormat:@" sessionOnly = %d\n", [cookie isSessionOnly]]; [cDesc appendFormat:@" secure = %d\n", [cookie isSecure]]; [cDesc appendFormat:@" comment = %@\n", [cookie comment]]; [cDesc appendFormat:@" commentURL = %@\n", [cookie commentURL]]; [cDesc appendFormat:@" version = %d\n", [cookie version]]; // [cDesc appendFormat:@" portList = %@\n", [cookie portList]]; // [cDesc appendFormat:@" properties = %@\n", [cookie properties]]; return cDesc; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload