How to dreate cookies in other site js running from my site.

Discussion in 'JavaScript' started by Subikar, May 10, 2007.

  1. #1
    Suppose I am running a js file from mydomain.com and want to create a cookie to yourdomain.com is it possible to do this in javascript.
    Second thing is that legal to create the cookie to another domain ?

    Any help will be appreciated.

    Thanks in advance
    Subikar
     
    Subikar, May 10, 2007 IP
  2. xooMan

    xooMan Peon

    Messages:
    92
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    AFAIK, it's not possible by default. Probably, with some hacks/browser holes.
     
    xooMan, May 10, 2007 IP
  3. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Yes it is not possible. But is it legal to create cookieto other site without the permission of other site
     
    Subikar, May 11, 2007 IP
  4. xooMan

    xooMan Peon

    Messages:
    92
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I wouldn't like that some 3rd party creates cookies on my site.
     
    xooMan, May 11, 2007 IP