I am quite new to php.. so be kind. :D
Anyway, I am in the process of creating a simple function that stores information about a certain visitor that has been referred to us. With referred I mean I have create affiliate links for them to use in promoting a certain page on our website.
So I've read a little about sessions and session variables.
My idea is that I get who refers a sale via url parameters in the referral link and storing it within a session variable.
Say I have this referral link - www.example.com/?referralid=affiliateone
When people click on that link, they will go to a page and the function will work. Storing the referralid parameters within a session variable.
$_SESSION["referrer"] == $_GET['referralid'];
Would that work?
So while the visitor is in the website this session variable will be carried..That's the only thing I want to know. Will this work for multiple people accessing the page?
Do they get different session? And in that case, different referral id url parameter installed in their session variable?
I hope I make sense. I appreciate all your answers.