Posts

Showing posts with the label NSHTTPCookie

iPhone manually set Cookies

Hi guys !!! You may have encountered situations where you wish to set some cookies through your app code. There is a very basic procedure to do it. 1. Create a dictionary with all the cookie properties 2. Create a Cookie passing the property dictionary which you created 3. Set the Cookie using the NSHTTPCookieStorage class First create a properties dictionary. NSDictionary *propertiesUsername = [ NSDictionary dictionaryWithObjectsAndKeys :                                         @".yourdomain.com" , NSHTTPCookieDomain ,                                         @"cookie_name" , NSHTTPCookieName ,                                         @"cookie_value" , NSHTTPCo...