Re: cookie retrieval from another server

From: Date: Thu, 01 Jun 2000 12:05:31 +0000
Subject: Re: cookie retrieval from another server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-786@lists.php.net to get a copy of this message
> > > > 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/ > > +++++++++++++++ > > 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 ?? > > > > If your first server is www.eztest.com and your secure server is > > secure.eztest.com, then you'll be okay -- so long as you > > *specify* the domain "eztest.com" in your call to the setcookie() > > function. > > No, first is eztest.com. > Second is www.secureserver.nl > > Any other way to do this ?? There is no way to do it with cookies. Its part of the specification. Can you pass the refid as a hidden form parameter to www.secureserver.nl which is initialised from the cookie on the eztest.com server? Regards, Kelly.

« previous php.general (#786) next »