JS to Check For Third-Party Cookie Acceptance?

Discussion in 'JavaScript' started by Letcha, Nov 5, 2008.

  1. #1
    I'm working with a developer to put together a sitewide shopping cart on an ecommerce store. This cart would sit in the top right corner and display if it had anything in it, and if so, the total cost of the items in the cart.

    However, the cookie that determines if anything is in the shopping cart would be coming from a different domain than the ecommerce store, hence 3rd party cookie.

    Does anyone know of a JS that would check if a user has third-party cookies enabled? With something like this I could then display the sitewide cart if they do have 3rd party cookies enabled, and show something else instead if they don't.

    Any assistance here is much appreciated - Thanks in advance!
     
    Letcha, Nov 5, 2008 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    what is a 3-rd party cookie? so in essence - you are saying I can choose to read all cookies set by - say, microsoft.com on your PC?

    that goes against the idea of cookies being domain specific and encrypted... i'd love to know more about it though, not just in the context of JS but in general...

    as for your problem - you ajax fetch a remote json object with your basket data - its not a big deal to do so.
     
    dimitar christoff, Nov 5, 2008 IP