The session is inserted into mongodb at the correct time