ciao
allora per usare le sessioni devo scrivere prima session_start();

no?

se lo scrivo mi da quest'errore
Warning: Cannot send session cookie - headers already sent by (output started at c:\etc etc\edit.php:5) in c:\etc etc\edit.php on line 7

Warning: Cannot send session cache limiter - headers already sent (output started at c:\etc etc\edit.php:5) in c:\etc etc\edit.php on line 7

Warning: open(/tmp\sess_1426df6fdb5cddf1c52590875c71e831, O_RDWR) failed: No such file or directory (2) in c:\etc etc\edit.php on line 7
perchè??

pag 1

codice:
session_start();
$_SESSION['giggio'] == "giggione";
pag 2

codice:
session_start();
if ($_SESSION['giggio'] = "giggione")
 {
   echo("sei loggato");
}
else{
   echo("devi loggare!");
}
help?