grazie a tutti ho trovato dove sbagliavo
utilizzavo session_register anziché $_SESSION