RE: [PHP-GENERAL] cookie retrieval from another server
| From: | aj | Date: | Thu, 01 Jun 2000 11:09:21 +0000 |
| Subject: | RE: [PHP-GENERAL] cookie retrieval from another server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-783@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: James Lyon [mailto:james.lyon@aztec.co.uk]
> Sent: donderdag 1 juni 2000 12:53
> To: Maxwell Hung
> Cc: aj@mdma.nl; php-general@lists.php.net
> Subject: Re: [PHP-GENERAL] cookie retrieval from another server
>
>
> > A cookie can only be sent to the server name it came
> > from.
>
> Or servers within the same domain ... if the cookie is set correctly to
> begin with.
>
This is what I do on the first page.
Someone comes on my site through a banner on another site, hence the
"refid".
+++++++++++++++++
if ($refid)
SetCookie("refid", $refid, time() +7200);
++++++++++++++++
which leaves something like this on my computer:
++++++++++++
refid
blu
eztest.com/
0
1211144704
29346751
863088736
29346734
*
+++++++++++++++
Then on my secureserver I do this
++++++++++++++++
<?
if (isset($refid))
print"$refid";
?>
+++++++++++++++++++++
but it never prints the refid.
How do I get the refid into the script on my secure server ??
Thanx
aj