So... basically here is the issue:
-1 I will send a user to a log-in page with a get request something like:
www.example.it/login.php?ref_link=12345
So, in the login page I've 2 type of log in a) Normal one: email and password where the user inputs his credentials b) Facebook Login with the normal button "login with facebook"
I store the ref_link in a cookie with this simple command
setcookie('ref_link', $ref_link_content, time() + (43200 * 1), "/");
So basically here is the issue that I'm facing
When the user login in the "normal" way there's no issues regarding maintaining the cookie set. But when the user logs in with facebook, well, that's the issue, the cookie seems to unset itself.
There's someway to let the cookie pass through the facebook login?
Let me know!