Wednesday, February 10, 2010

duplicate values with jQuery.cookies (set the path!)

7 comments:

  1. Thanks for your article. I have been braking my head, why the cookie was different each time, only then realized it is storing duplicates based on path.
    As you rightly pointed out, the API documentation could have been explicit on this, as cookies are often used with session / application scope and not page level.

    Thanks,
    Raj.

    ReplyDelete
  2. THANK YOU!

    I am using CodeIgniter and it was VERY counter intuitive.

    ReplyDelete
  3. The Firecookie plugin (for Firebug) also helped get to the bottom of this - thanks for the post.

    ReplyDelete
  4. Great article, It didn't took me that long to figure out that it was the path that was the problem. Seeing how everything else worked perfectly offline and when I put it online everything worked as well, except for the cookie, I figured a quick look in chrome://settings/content -> content settings -> All cookies and site data, would show me something interesting.
    That said, it is thanks to this article I realised I needed to swith two parameters :)

    ReplyDelete
  5. Very nice. Your article helped me a lot.

    ReplyDelete
  6. Amazing! I was banging my head for two days now, why on Earth everything is working perfectly in all browsers except Internet Explorer. When I set the path, IE started working! Thanks a ton for the article!

    ReplyDelete
  7. I spend 2 days figuring out what the issue was!

    ReplyDelete