gesf
New member
Your setcookie code is right... i mean, that's exactly the right way for the cookie to be recognized by subdomains of example.com: .example.com
Did you try just for the domain !? Does it worked ? Or perhaps the problem is on the cookie lifetime: 0
Try this out:
Cheers
Did you try just for the domain !? Does it worked ? Or perhaps the problem is on the cookie lifetime: 0
Try this out:
Code:
<?php
// Set cookie for 1 day
setcookie ('surferid', '10', time() + 86400, '.example.com');
// To reset the cookie
// setcookie ('surferid', '', $time - 86400);
?>
Cheers