Re: Too Advanced? Re: Cookies & Hidden Image
| From: | Viraj Kalinga Abayarathna | Date: | Thu, 04 Sep 2003 04:02:16 +0000 |
| Subject: | Re: Too Advanced? Re: Cookies & Hidden Image | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161611@lists.php.net to get a copy of this message | ||
Hi Nicole,
You can not retrieve information stored in a cookie which set by
one domain from some other domain. Try passing all the information
you want with the image SRC tag.
regards
Viraj
Nicole wrote:
>
> OK. Thanks.
>
> I have the hidden image code:
>
> <img
> src=http://thetrackingurl/?param1=val1¶m2=val2&etc...
> height=0
> width=0 border=0>
>
> This hidden image code is placed on the ThankYou page that people see after
> they have bought something. What it does is load a script on the tracking
> site to let the owner know a sale was made.
>
> The tracking site is different from the site that the product is sold on.
>
> A cookie was placed on the client's (buyer) side to store where that client
> originated from. So when the hidden image is called, the tracking script is
> called and tries to access this cookie to retrieve where the buyer came
> from.
>
> But the script just gets a blank cookie when accessed this way(via hidden
> image); However, if the script was accessed directly, or the thankyou page
> resided on the same domain as the tracking script (which created the cookie
> to begin with), the cookie has the value that it was set with.
>
> Does this make sense? Thanks for any input. PHP's docs on sessions didn't
> seem to have anything relating to this situation; so I'm stuck.
>
> Nicole
>
> "Chris Shiflett" <shiflett@php.net> wrote in message
> news:20030903213425.49254.qmail@web14301.mail.yahoo.com...
> > --- Nicole <430ntr3k@aeontrek.com> wrote:
> > > Is this question too advanced for this newsgroup?
> >
> > Somehow I doubt it. But, that's a nice tactic for grabbing some attention.
> :-)
> >
> > Show us some sample code of a very small test case. I can't really follow
> your
> > description of what you are trying to do.
> >
> > Chris
> >
> > =====
> > Become a better Web developer with the HTTP Developer's Handbook
> > http://httphandbook.org/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php