Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 907329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:32:19+00:00 2026-05-15T16:32:19+00:00

I do this, but the new cookie doesn’t show up, just some other cookies

  • 0

I do this, but the new cookie doesn’t show up, just some other cookies that are already set. What’s wrong?

[[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
[[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookie:[NSHTTPCookie cookieWithProperties:[NSDictionary dictionaryWithObjectsAndKeys:
                                                                                             @"www.mydomain.com", NSHTTPCookieOriginURL,
                                                                                             @"/", NSHTTPCookiePath,
                                                                                             @"mycookiename", NSHTTPCookieName,
                                                                                             @"mycookievalue", NSHTTPCookieValue,
                                                                                             nil]]];
 NSLog(@"%@",[NSHTTPCookieStorage sharedHTTPCookieStorage]);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:32:20+00:00Added an answer on May 15, 2026 at 4:32 pm

    Have you tried putting an NSURL into the NSHTTPCookieOriginURL property?

    NSURL *originURL = [NSURL URLWithString:@"http://www.mydomain.com"];
    

    It looks like you can use an NSString or an NSURL, but either way the URL you specify must conform to the standards outlined in RFC 2396 (e.g. “http://x.y.z“, etc.).

    Also make sure you’re not overlooking any other required cookie properties or formatting of those properties.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may be the wrong place but this is new to me. I did
hello i am little new to all this but i want to know that:
I just figured this out but instead of splitting my new question (why?) into
I'm new to MongoDB and trying out some fundamentals, but this astonished me. I'm
I have this JavaScript code that sets the document.cookie but when running it I
I've added this to my application.js but it doesn't create a cookie. In fact
I am new to Emacs. I have googled this but no good answer there.
Hi Guys new to this site but a big fan. Right the problem. It's
I am new to maven and I am trying to follow this example but
I figured this would be simple, but being new to SSRS I'm not sure.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.