session_start(); #configuration $usercheck = "applicazioni"; $passcheck = "c08wkret"; $message_error = '
Il nome utente e la password specificati non sono corretti.
'; #end configuration if ($_SESSION["authenticated"]==true){ die(''); }else{ if(($_POST["username"]!="")&&($_POST["password"]!="")){ if(($_POST["username"]==$usercheck)&&($_POST["password"]==$passcheck)){ $_SESSION["authenticated"]=1; die(''); }else{ $messaggio=$message_error; } } } ?>