F
-fool-
Guest
cookie.php is supposed to set a cookie called lolzz
is the code there.
then on another page i have
this redirects to the news.php if its set, or shows me that the cookie was set wrong (or not set at all).
right now the cookie never sets, and the redirect works even when the cookie is not set.
Code:
<?php
setcookie("lolzz", "", time()+36000);
?>
then on another page i have
Code:
<?php
if (isset($_COOKIE["lolzz"]))
header("Location: news.php");
else
echo "cookie not set"
?>
right now the cookie never sets, and the redirect works even when the cookie is not set.