ziffgone
05-20-2004, 07:40 PM
Hi, is there a way that I can clear the HTTP_REFERER value before redirecting to another page?
I have a situation where I want all of the paying members from my friend's website to receive a 30% discount on the product I'm selling. I currently have a redirect script that uses HTTP_REFERER to redirect traffic from his site to the discount page.
Problem is, he has a link for his free members as well who aren't privy to this discount. The script I'm using sends them to the discount page anyway as the HTTP_REFERER is still set as his site. He currently uses a ClickBank hoplink to link to my site as I want him to receive a commission on all sales sent my way, both discounted or full sale, therefore I can't give him a separate link for the full price sales or he won't receive a commission.
I tried to rectify the situation by giving him a link to a script that redirects using his ClickBank hoplink from my server, I thought this would reset the referring site to my own and send the viewer to my home page instead of the discount page. No luck.
If I can clear or set the HTTP_REFERER value before redirection, this would be the best solution I can figure. Can this be done?
Regards...
I have a situation where I want all of the paying members from my friend's website to receive a 30% discount on the product I'm selling. I currently have a redirect script that uses HTTP_REFERER to redirect traffic from his site to the discount page.
Problem is, he has a link for his free members as well who aren't privy to this discount. The script I'm using sends them to the discount page anyway as the HTTP_REFERER is still set as his site. He currently uses a ClickBank hoplink to link to my site as I want him to receive a commission on all sales sent my way, both discounted or full sale, therefore I can't give him a separate link for the full price sales or he won't receive a commission.
I tried to rectify the situation by giving him a link to a script that redirects using his ClickBank hoplink from my server, I thought this would reset the referring site to my own and send the viewer to my home page instead of the discount page. No luck.
If I can clear or set the HTTP_REFERER value before redirection, this would be the best solution I can figure. Can this be done?
Regards...