login prob

A

Anonymous

Guest
i have a prob i dont know why its not working at all here the code(its a class)
here the function that chack u up
Code:
session_start();
class start {
.
.
.
 function is_login() {
          $this->acts ();
          $err = new main();
          if ($_SESSION||$_SESSIOn['passed'] != true) {
               $err->msg_die(6);
          }
          else {
               return true;
          }
     }
}
here the index.php that active the function
Code:
include_once("./include/auth.inc.php");
$set = new start();
if (!$set->is_login()) {
    $sid = $set->dt1['data']['sid'];
    $uid = $set->dt1['user']['id'];
    $title =  $set->dt1['data']['title'];
    header("http://" .$_SERVER['HTTP_HOST'] ."/msgger/index.php?act=main&uid=$uid&sid=$sid");
}
else {
    $title = "Login System";
    header("http://" .$_SERVER['HTTP_HOST'] ."/msgger/index.php?act=login");
}
if ($act == 'login'||$act!="")  {
.
.
htmls tags
}
else {
html tags

}
why its not workin if some one knows
 
Why not tell us what it's doing or not doing? Are you getting an error? What values is it returning?
 
what tghat i can see its not do noting when he need to do
login check out
 
Your code in is_login() function
if ($_SESSION||$_SESSIOn['passed'] != true) {

you have written $_SESSIOn :idea: and it should be $_SESSION

if ($_SESSION||$_SESSION['passed'] != true) {
 
Back
Top