leaving the teacher view deletes session from db.