Forum Moderators: coopster
After the script check if the username and password are valid it sets a cookie:
setcookie('ck_user', $user);
header("Location: /main.php");
then on the main.php page:
if (!$_COOKIE['ck_user']) {
header("Location: /login.html");
} else {
$user = $_COOKIE['ck_user'];
setcookie("ck_user", $user);
....
anyone know why the cookie wont even set. I have been looking at the php manual and serching google to no avail.
Thanks for any help.
-Russell