how to insert values for all websites RRS feed

  • Question

  • User932259438 posted


    localstorage, cookies its working only for the same website.

    If i have default1.aspx in one domain name, and default1.aspx in another domain name i need find data from first domain name.

    How can I used javascript to insert one value for all domains?

    Friday, December 30, 2016 10:04 AM

All replies

  • User527778624 posted


    Check this site:


    Friday, December 30, 2016 1:22 PM
  • User753101303 posted


    Do you own those two domains? They are hosted at the same place?

    For this kind of question, it is IMO best to directly ask about what you are actually trying to do. For now you ask about how you think you could technically achieve your goal (JavaScript) but precisely we have no idea at all about your exact final goal ("insert values" is vague, you mean inserting values into the db for those sites ?)

    Friday, December 30, 2016 5:52 PM
  • User-474980206 posted
    Cookies and local storage are locked down to the website domain by design, if you need to share between sites, then you use server storage, which both sites can access.

    Friday, December 30, 2016 6:05 PM
  • User932259438 posted

    That problem, i'm not owner. I'm working for affiliate system and I if owner of website put one .js file owner of website and then i need to call partnerid=39120

    I tried a lot of solution and still facing with this issue

    Friday, December 30, 2016 6:43 PM
  • User932259438 posted

    If partner add one script like: adbanners.js on website which is owner and this script insert cookies how can i call cookies on my website?
    Like google ads...

    Friday, December 30, 2016 7:02 PM