nella pagina prodotti.phpCodice PHP:<?php
session_start();
if(isset($_SESSION['utente'])) { unset($_SESSION['utente']); }
if (ud e password coincidono)){
$_SESSION['utente'] = 1;
header('location: gestione_interna/prodotti.php');
exit;
}
?>
header('location: /index.php'); <--- sicuro che funzioni?Codice PHP:<?php
session_start();
if(empty($_SESSION['utente']) OR $_SESSION['utente'] != 1 ) {
header('location: /index.php');
exit;
} else {
tuo codice
}
messo cosi' indica la root dovresti mettere il punto o il doppio punto.....

Rispondi quotando