add some usefull methods to the Session class