Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
NSHTTPCookie not writing cookie in 10.4 for safari.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSHTTPCookie not writing cookie in 10.4 for safari.



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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.