Re: Affiliate system

From: Date: Fri, 15 Sep 2006 22:49:40 +0000
Subject: Re: Affiliate system
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241852@lists.php.net to get a copy of this message
On Wed, September 13, 2006 12:58 am, Peter Lauri wrote: > 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. PHP's use transsid setting in php.ini does exactly that, only with the session ID, and you don't have to do nothing except turn it on. :-) > 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? Using PHP SESSION with the transsid "on" means you can have the session last reliably for up to 2 years, if you want to. That's what I would do, personally, and then you can simplify your code quite a bit... -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#241852) next »