i have some scripts, on the main script it always checks for a cookie to see if someone's logged in and checks that cookie info with the database, if it disagrees with database info, then i just do setcookie($cookie); and it works, it unsets the cookie.
but for some reason it wont here...
Code: Select all
if ($_COOKIE[$cookie]) {
setcookie($cookie);
header("Location: place.php");
} else {
// no cookie's set, show login forms...
}any ideas of what could be going on here? the exact same line works on the other script, but not this one.