I have also tried many different things like:
$ck_typ = $HTTP_COOKIE_VARS["ck_typ"
if ( $ck_typ == "admin" ) {
$_SESSION['db_is_logged_in
header("Location: processor.php?sender=admin
}
if ( $ck_typ != "admin" ) {
$_SESSION['db_is_logged_in
header("Location: processor.php?sender=user_
}
and I've even echoed out the value of $ck_typ which seems to be null
Main Topics
Browse All Topics





by: sajuksPosted on 2006-08-08 at 20:57:10ID: 17276508
you have set
'] = true; _cpanel");
$ck_typ = "login_typ";
and your if condition is
if ( $_COOKIE[ck_typ] == admin ) {
now if the value of $ck_typ was admin then
$ck_typ = "admin";
your check for the if condition should be
if ( $_COOKIE["ck_typ"] == "admin" ) {
$_SESSION['db_is_logged_in
header("Location: processor.php?sender=admin
/* Make sure that code below does not get executed when we redirect. */
exit;
}