Forum Moderators: coopster
I have tried to following.
<?php
setcookie("prclicktrack", "id", time()+3600, "/","/", 0);
?>
It is not adding the cookie to my browser (or whatever) and doesnt appear in my cookies folder in my windows folder or from a page where I added
<?php
print_r($_COOKIE);
?>
Can anyone shed some light on how these work because I have been trying to get it to work for nearly 6 hours...
Any help appreciated...
setcookie("prclicktrack", "id", time()+3600, "/"); or, if you want to share the cookie across the domain:
setcookie("prclicktrack", "id", time()+3600, "/", ".example.net"); ;)
setcookie('v', $visit, time()+100000000, '/');
I wonder if setting the cookie is actually working for you and you don't realize it. You need to check for the cookie being set the next time you visit a page, not in the same page view that you set the cookie.