Hi All,
I am really stuck on this one. I need to set a cookie on one domain that is then readable by a PHP script on another domain.
If I set the cookie from like this:
[tt]$cookie = setcookie ("verio", value, $exp, "/sub/directory/", "www.verio.co.uk"[/tt]
I can then read it from but if I set a cookie on like this:
[tt]$cookie = setcookie ("verio", value, $exp, "/directory/", "www.veriouk.com"[/tt]
I cannot read the cookie from which is were I need to read it from. The scripts that read in the cookie are the same on both the servers and just use the line:
[tt]echo $verio[/tt]
I have double checked everything and I am sure I am doing this as specified at php.net.
I would really appreciate some help on this.
I noticed on the preview screen for this message that the forum has put in an extra semicolon just before the last bracket oneach of the set cookie lines. This is not actually there.
Thanks
fortytwo
will@hellacool.co.uk
I am really stuck on this one. I need to set a cookie on one domain that is then readable by a PHP script on another domain.
If I set the cookie from like this:
[tt]$cookie = setcookie ("verio", value, $exp, "/sub/directory/", "www.verio.co.uk"[/tt]
I can then read it from but if I set a cookie on like this:
[tt]$cookie = setcookie ("verio", value, $exp, "/directory/", "www.veriouk.com"[/tt]
I cannot read the cookie from which is were I need to read it from. The scripts that read in the cookie are the same on both the servers and just use the line:
[tt]echo $verio[/tt]
I have double checked everything and I am sure I am doing this as specified at php.net.
I would really appreciate some help on this.
I noticed on the preview screen for this message that the forum has put in an extra semicolon just before the last bracket oneach of the set cookie lines. This is not actually there.
Thanks
fortytwo
will@hellacool.co.uk