URL: http://www.uburst.com/cgi-bin/dcforum/dcboard.cgi
Forum: ushp_general_purpose
Thread Number: 309
[ Go back to previous page ]

Original Message
"cookie expiration..."

Posted by Clark Pearson [clark@freshwebproduce.com] on at 09:02 PM
How do I set the cookies in the affiliate program to expire later? Like 30 days, 60 days, 90 days, 180 days...


Table of contents

Messages in this discussion
"RE: cookie expiration..."
Posted by Bill Weiner on at 05:10 AM
There's not a simple configuration variable that allows you to change the affiliate cookie expiration time, but here are instructions on how to make a quick modification to the script:

STEP 1: Make a backup of your current "ushop-lib.pl" script... just in case.

STEP 2: Open your "ushop-lib.pl" script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

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

STEP 4: Change the "604800" seconds in that line to your desired time. For instance, if you wanted it to expire in 30 days, change that line to:

$time_to_expire = time + 2592000; # Expire in 30 days.

(Where 2592000 was calculate by multiplying 86400 seconds per day X 30 days)

STEP 5: Save the file... as TEXT if your editor asks... and try it out!