I have an app that makes request to a REST service. Authentication is done using cookies. This already works.
What I have problems with is to test the case when the cook
You'll probably find better luck doing this in the SDK code rather than modifying file systems. Try:
//Delete previous cookies
NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (NSHTTPCookie *each in [[[cookieStorage cookiesForURL:YOUR_URL] copy] autorelease]) {
[cookieStorage deleteCookie:each];
}