PDA

View Full Version : NSHTTPCookieStorage and session cookies




BollywooD
Sep 12, 2009, 06:02 AM
I am posingasclass for NSHTTPCookieStorage, and are trying to block
certain cookies.
I have been experimenting with blocking all cookies with following
method:

- (void)setCookies:(NSArray *)cookies forURL:(NSURL *)theURL
mainDocumentURL:(NSURL *)mainDocumentURL
{
return;
}

which works well, except when the cookies are session cookies. All the
session cookies seem to pass through to the NSHTTPCookieStorage.

is there a way to block all cookies, including session cookies?


cheers in advance.