Collegati
if(isset($_SESSION[prog]['msg'])) : ?>
echo $_SESSION[prog]['msg']['text']; unset($_SESSION[prog]['msg']); ?>
endif; ?>