Ive just installed wamp and got my site running on localhost, but when I try to set a cookie it seems to delete it when the login script reloads to a new page.
Ive tested the script to see if its actually setting the cookie like...
$cookie_life = time() + 43200;
setcookie('ID', 1, $cookie_life);
header("Location: index.php?cookie=".$_COOKIE['ID']);
and this would output, index.php?cookie=1
I just cant seem to figure out when I try to echo the cookie on the index page it wont show.
Any suggestions?