ajout methode registerSession