Moved the Session access from onApplicationStart