ciao a tutti..
mi è arrivato sto codice che nn funziona e io dovrei correggerlo.. ma nn capisco che fa!! secondo voi è giusto ?
//////////////////////////
$tses= 300;
$usr = array('ciao');
$pss = array ('ciao');
$usr;
$nusr=count($usr);
$id=0;
while ($id < $nusr){
if (($usr[$id] == $_POST["user"]) && ($pss[$id] == $_POST["psw"])){
$log++;
}
$id++;
}
if ($log>0){
session_start();
$login_session = True;
$time_session = time() + $tses;
session_register("login_session");
session_register("time_session");
$jp=$_SESSION['JumpPage'];
@header("Location: $jp");
}else{
@header("Location: login.html");
}