Dunque ti posto il codice completo così ci dai un'occhiata. Non capisco perché non funge... Sono sconfortato...

ecommerce.php

Codice PHP:
<?php
session_start
(); 
if (isset(
$_SESSION['login']) {
echo 
'

Siete entrati nell\'ecommerce!</p>'
;
echo 
'

</p>'
;
}
else {die (
"Accesso negato");}
?>
index.php

Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<
html xmlns="http://www.w3.org/1999/xhtml"
<
head
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<
title>Documento senza titolo</title
</
head
<
body
<
form method="post" action="indirizza.php" name="form_send"


User (romanito)</p
<
input type="text" name="user"/> 


Password (balestra)</p
<
input type="text" name="password"/> 
<
input type="submit" value="Visualizza l'ecommerce"/> 
<
form/> 
</
body
</
html
indirizza.php

Codice PHP:
<?php 
$user 
$_POST['user']; 
$pass $_POST['password']; 

if ((
$user == 'romanito')&&($pass == 'balestra')) { 

    
session_start(); 
    
$user sha1($user); //cripto l'username per sicurezza 
    
$_SESSION['login'] = $user


echo
'<script type="text/javascript">'
echo
'/*<![CDATA[*/'
echo
'location.href = "http://balestra.netsons.org/esempio/ecommerce.php";'
echo
'/*]]>*/'
echo
'</script>'


else die (
"Credenziali non valide");
?>
non so dove possa essere l'errore... mah...

ciao e grazie

P.S.: I codici pari pari a come sono sui miei file non riesco a scriverli... non conosco il motivo...