Con questo codice:
Codice PHP:
[...]
/* -- Creo una Sessione con ID dell'Utente, che lo farà restare Connesso tutto il Tempo della Navigazione alle Pagine protette da Login -- */
while($row mysql_fetch_array($res)) 
{
session_start();
$id_utente $row['id'];
$nome_utente $row['nick'];
$_SESSION['id_utente'] = $id_utente;
$_SESSION['nome_utente'] = $nome_utente;

/* -- Infine reindirizzo l'Utente nella pagina protetta da Login -- */
header ("location: paginasegreta.php");
}
[...] 
Mi da errore nella session_start()

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/nome/public_html/login.php:2) in /home/nome/public_html/login.php on line 59

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/nome/public_html/login.php:2) in /home/nome/public_html/login.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at /home/nome/public_html/login.php:2) in /home/nome/public_html/login.php on line 66

Come mai?