Session managed being moved to model