Forum Moderators: coopster
if ($num!= "0") {
setcookie("dhananscookiehjj", $username, time()+86400);
header ("location: .../logout_form.php");
exit;
}
could i use:
if ($num!= "0") {
setcookie("dhananscookiehjj", $username, time()+86400);
}
while {
header ("location: .../logout_form.php");
exit;
}
or anything like that?
===checks for valid login===
if ($num!= "0") {
header ("location: .../logout_form.php");
exit;
}
===on logout_form.php===
if (!$_COOKIE["dhananscookiehjj"]) {
setcookie("dhananscookiehjj", $username, time()+86400);
}
...then the rest of the page...