Codice PHP:
if (IsSet($_SESSION['user'])) { 
$utente $_SESSION['user'
$fp fopen('try.txt','a+');
fwrite($fp"$utente,");
fclose($fp);