Hi
I am using the following code to set a cookie as the user logs in to my system.
<?php setcookie("username", addslashes($_POST['username']), 30000000); ?>
However for some reason it does not actually set the cookie. I have tried it on many different computers and it is not the particular system.
<?php echo "Username: " . $POST['username'] . " Cookied username: " . $COOKIE['username']; ?>
This line should output the username that they entered $_POST['username'], and then it should output the username that was stored in the cookie. however the cookie is empty... What am I doing wrong? It worked before...
Thanks,
Uatec