Salve,

sto provando la funzione session_start()

Ho creato questi due file
form.html
codice:
<form method="post" action="sessione.php">
Nome utente: <input name="nome_utente">

Password: <input name="password" type="password">

<input type="submit" name="Invio">
</form>
e sessione.php
Codice PHP:
    session_start();
    
$_SESSION["nome_utente"] = $_POST["nome_utente"];
    
$_SESSION["password"] = $_POST["password"];
    
    if(
$_SESSION["nome_utente"] == "USER"  or $_SESSION["password"] == "PASS"){
            echo 
"ok";
    } 
Dopo aver cliccato sul subimit del form, ho "Internal Server Error".
La sintassi mi sembra semplice. Cosa ho sbagliato?
Grazie in anticipo!