Alright so I have a website where users get referrals. If someone visits the site using a referral link, their is a cookie placed so that the user that visited the site signs up under the person that is in the cookie.
Here is a scenario where there is an issue:
Person A visits the site under Person B's referral link. Therefore, a cookie with person B's username is placed on Person A's computer.
Now, if Person A visits the site under Person C's referral link, Person B's referral link is still the cookie.
I have tried to remove the cookie and it works but not instant. Like in the scenario I just gave you, Person A would SEE Person B's cookie, and if the page refreshed, then Person C's cookie would show up.
Is there any way around this? I know PHP is a server side language and that might be the overall issue, but if it's not, please help me! Thanks in advance.




Bookmarks