Added methods related with the session.