add function getAll() in interface Session