uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map
Affiliate Referral Question ...

Knowledge Base Lobby : uShop Support Conference : General Questions
Mar-18-18 11:20 PM EST
Original Message
Affiliate Referral Question ...
Author Alex on 11-03-2000 at 16:43 (EST)
What happens if a customer clicks-through Affiliate A's link and then 2 day's later clicks Affiliate B's link and makes a purchase. Who would get the credit for the sale?

Does the new cookie overide the first one?


Table Of Contents
  RE: Affiliate Referral Question ... Bill Weiner, 2000-11-04 07:46:38 (1)
            Cookies Eric J. White, 2000-11-05 00:27:10 (2)
                 RE: Cookies Bill Weiner, 2000-11-06 06:02:18 (3)

Messages In This Discussion
         1. RE: Affiliate Referral Question ...
        Author Bill Weiner on 11-04-2000 at 07:46 (EST)
Yes, the new cookie will override the previous cookie.
                 2. Cookies
                Author Eric J. White on 11-05-2000 at 00:27 (EST)
On the referral there a way to make them expire longer than 7 days?
like, say 6 months?
For our product, this would be appropriate.
                         3. RE: Cookies
                        Author Bill Weiner on 11-06-2000 at 06:02 (EST)
There is not an easily configurable way at this time to increase the referral cookie expiration time, but here are some steps to make a simple modification to the code:

STEP 1: Back up your current "" file...just in case.

STEP 2: Open your "" file with any text editor such as WordPad.

STEP 3: Do a search on "sub affiliate_redirect" ... this will get you to the start of the subroutine that handles setting affiliate cookies.

STEP 4: About 11 lines into that "affiliate_redirect" subroutine, you will see the following line:

$time_to_expire = time + 604800; # Expire in one week.

That 604800 is the number of seconds (approximately) in which the affiliate cookie will expire. (There are approximately 604800 seconds in a week).

STEP 5: Adjust that above line accordingly. For example, if you wanted the cookie to expire in 6 months, then change that line to:

$time_to_expire = time + 14515200; # Expire in six months.

STEP 6: Save the file (as TEXT if your editor asks).

STEP 7: Try it out!


© 2003 Microburst Technologies, Inc.