Refactored Mongo Session Layer