Codice 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; 
}
?>
nella pagina prodotti.php

Codice PHP:
<?php
session_start
();

if(empty(
$_SESSION['utente']) OR $_SESSION['utente'] != )   {  
header('location: /index.php');
exit;
}  else {

tuo codice
}
header('location: /index.php'); <--- sicuro che funzioni?

messo cosi' indica la root dovresti mettere il punto o il doppio punto.....