implemented getting session by id