I am trying to pass a xreferrer_id to my index.php page and setting a cookie using
<?php
setcookie('xreferrer_id',$xreferrer_id,time()+1209600);
?>
I am passing it to index.php like so:
http://www.mysite.com/index.php?xreferrer_id=20
It is being passed to index.php and I can print it to the screen. However, when I try passing it to https://secure.mysite.com and using this to grab the cookie:
$xreferrer_id = $HTTP_COOKIE_VARS['xreferrer_id'];
It gets lost. Any ideas as to why? Could it be because it is going to https://secure from http:// ?
Thanks for your help.