RE: [PHP] Affiliate system



That is probably what I will do. Thanks for your comment.

-----Original Message-----
From: Andrei [mailto:phplist@xxxxxxxxxxxx]
Sent: Wednesday, September 13, 2006 2:43 PM
To: [php] PHP General List
Subject: Re: [PHP] Affiliate system


I ran into same issue with a site... I solved this problem by saving
information in 2 places (in cookies and in database). So when saving
data once I saved in the cookie then into database. When I wanted to
read the information I first check if cookie exist and if it doesn't I
read from database.

Andy

Peter Lauri wrote:
Hi guys,

I am reviewing an affiliate system that I created a while ago. I am using
a
very simple method to do this, but I am curious if there is any better
system (better I mean less missed affiliate purchases).

1. User click on affiliate link http://thedomain.com/?a=1234
2. The if $_GET['a'] is set, we check if that is an valid affiliate, and
then set a cookie for that
3. At purchase, we check if that cookie still is there, if so, we register
it as a affiliate purchase and that info is stored in the purchase
database

What should I do if they do not allow cookies? I could amend a=1234 onto
every url that they pass, but that would not be a "beautiful" solution.

Maybe I can also create a SESSION that stores the affiliate information so
that it at least get registered if the purchase is completed within the
session?

What do you think is the best way?

Best regards,
Peter Lauri

www.lauri.se - personal web site
www.dwsasia.com - company web site


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.



Relevant Pages

  • Affiliate system
    ... I am reviewing an affiliate system that I created a while ago. ... At purchase, we check if that cookie still is there, if so, we register ...
    (php.general)
  • Re: [PHP] Affiliate system
    ... information in 2 places (in cookies and in database). ... read the information I first check if cookie exist and if it doesn't I ... I am reviewing an affiliate system that I created a while ago. ... At purchase, we check if that cookie still is there, if so, we register ...
    (php.general)
  • Re: ebay "ad context" ads
    ... have found a way to get free advertising, since it should be pretty hard to ... I was at ebay's conference this weekend and sat on the affiliate ... They keep this cookie for quite a while. ... the user bids at the item during that time (do not recall what, ...
    (alt.marketing.online.ebay)
  • Re: ebay "ad context" ads
    ... "Web site affiliates receive a cut of 40 percent to 70 percent of sales, ... I was at ebay's conference this weekend and sat on the affiliate ... They keep this cookie for quite a while. ... Even if most buyers accept cookies, ...
    (alt.marketing.online.ebay)
  • Re: ebay "ad context" ads
    ... They keep this cookie for quite a while. ... a week or a month), and wins, the affiliate receives his commission. ... Only if you are getting paid to participate and doing so on your own free ... When buying on eBay, affiliates do not put any cash in my pockets. ...
    (alt.marketing.online.ebay)