NSHTTPCookie not writing cookie in 10.4 for safari.
NSHTTPCookie not writing cookie in 10.4 for safari.
- Subject: NSHTTPCookie not writing cookie in 10.4 for safari.
- From: Aby <email@hidden>
- Date: Wed, 23 Sep 2009 20:32:42 +0530
Hi,
Im am using NSHTTPCookie for storing on to the safari cookie database.
When i'm running this code on 10.5 and 10.6 its working fine. But in 10.4
the NSHTTPCookie is not writing the same.
My code is as follows :
{
NSDictionary * aDict = [NSDictionary dictionaryWithObjectsAndKeys:
@"CookieDomain", NSHTTPCookieDomain, @"999999", NSHTTPCookieMaximumAge,
@"CookieName", NSHTTPCookieName,
@"true", NSHTTPCookieValue,
@"/", NSHTTPCookiePath,
@"1",
NSHTTPCookieVersion,
nil];
NSHTTPCookie *aCookie = [NSHTTPCookie cookieWithProperties:aDict];
[[NSHTTPCookieStorage sharedHTTPCookieStorage]
setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
[[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookie:aCookie];
}
Also in 10.5 and 10.6 a new cookie entry is getting added with the name *bpp
*. Don't know how its getting added.
anything missing in this code ?
Thanks in advance.
--
Aby
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden